[Django]-Why am I getting "No module named 'django_celery_beat'" after installing django_celery_beat to my virtual env and putting it in INSTALLED_APPS?

1👍

I also met this.
Even though haven’t solved this, I found it should be a version or package conflict.
I tried but didn’t find compatible versions of them(django celery celery-beat-beat, maybe etc.)

Then I discard the ‘django_celery_beat’ from the INSTALLED_APPS.
Anyway, it works.

If you have a better solution, please tell us.

👤sevsea

1👍

For me the problem was with the python version:
django_celery_beat was installed on python3.9 site-packages and pip was using python3.8 site-packages.

try:

python -m pip install django-celery-beat

and then:

INSTALLED_APPS = [
....,
'django_celery_beat',
]

then migrate:

python manage.py makemigrations
python manage.py migrate

1👍

I had same problem too but in my case i forgot to write in snakecase django_celery_beat unser INSTALLED_APPS

0👍

django_celery_beat must be before Data_Science_Web_Appin INSTALLED_APPS

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django_celery_beat',
    'Data_Science_Web_App',
]
👤jgmh

0👍

For me a little pip install did it.

run this:

pip install django-celery-beat

0👍

I had this problem too, but then I found that I didn’t put a comma after I added "django_celery_beat" to INSTALLED_APPS

Leave a comment