Python 3.7.0,django 3.0.3,django-background-tasks 1.2.5(使用Anaconda环境)
如此处https://django-background-tasks.readthedocs.io/en/latest/所述,尝试使用django-background-tasks
,但是当我在INSTALLED_APPS
中将'background_task'添加到python manage.py migrate
时,我得到“ ModuleNotFoundError:否名为“后台任务”的模块”
答案 0 :(得分:3)
我的坏。该程序包称为“ background_task”,而不是“ background-task”
答案 1 :(得分:0)
您需要安装 django-background-tasks:
pip install django-background-tasks
关注this link。