ModuleNotFoundError: No module named 'allauth'

I tried deploying my django app on render, it went live initially but i realized I’m getting a 400 error on all of my endpoints. I checked my settings, added my domain to allowed hosts and also on environment on render, but i was still getting thesame error.
While searching for various ways to resolve this, i realized i have corsheaders in my settings, so i also added my domain(https://coderina.onrender.com) to it. On pushing to Github and deploying my app again, I got

ModuleNotFoundError: No module named ‘allauth’

I also checked the logs and realized django-allauth is not being installed like other packages, I still can’t figure out why that is
What I’ve done
I’ve tried uninstalling and reinstalling django-allauth
I also tried re-installing my requiremnts.txt file

This is the necessary part of my logs

Traceback (most recent call last):
  File "/opt/render/project/src/learnhub/manage.py", line 22, in <module>
    main()
  File "/opt/render/project/src/learnhub/manage.py", line 18, in main
    execute_from_command_line(sys.argv)
  File "/opt/render/project/src/.venv/lib/python3.11/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/opt/render/project/src/.venv/lib/python3.11/site-packages/django/core/management/__init__.py", line 395, in execute
    django.setup()
  File "/opt/render/project/src/.venv/lib/python3.11/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/opt/render/project/src/.venv/lib/python3.11/site-packages/django/apps/registry.py", line 91, in populate
    app_config = AppConfig.create(entry)
                 ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/render/project/src/.venv/lib/python3.11/site-packages/django/apps/config.py", line 224, in create
    import_module(entry)
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'allauth'
==> Build failed 😞

Any support is well appreciated. Thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.