Django - ModuleNotFoundError: No module named 'background-task'

Viewed 2625

Python 3.7.0, django 3.0.3, django-background-tasks 1.2.5 (Using Anaconda environment)

Trying to use django-background-tasks as explained here https://django-background-tasks.readthedocs.io/en/latest/, but as soon as I add 'background_task' to INSTALLED_APPS, when I run python manage.py migrate I get "ModuleNotFoundError: No module named 'background-task'"

2 Answers

My bad. The package is called "background_task" and not "background-task"

You need to install django-background-tasks: pip install django-background-tasks

Follow this link.

Related