我正在尝试安装django-background-task以在将响应发送给用户之后运行一些简单的后台任务。但是,我无法运行迁移,“ python manage.py makemigrations background_task”给出了一个错误。安装后,实际上我得到一个错误,
function uploadImage() {
return new Promise(resolve => setTimeout(resolve, 1000));
}
const images = ["image1.png", "image2.png", "image3.png"];
const upload = images.reduce((prom, image) => {
return prom
.then(() => uploadImage(image))
.then(() => console.log(`${image} uploaded!`));
}, Promise.resolve());
upload.then(() => console.log("All finished!"));
我不确定我缺少什么。这些是非常简单的步骤。我从源代码安装了软件包并安装了依赖项。任何帮助表示赞赏。