Cannot import name 'DEFAULT_STORAGE_ALIAS' from django.conf

I've setup a project that uses memcache and got it working properly but suddenly it stopped working and I just can't figure out why. According to the traceback is something that has to do with Django itself but that would be odd. So I'm asking you guys for help to help me figure out what's going on with this error. I haven't seen anything similar. Any clue?

Here's the traceback:

Traceback (most recent call last):
  File "/Users/rodrigodelaporte/Documents/code/harlan/manage.py", line 22, in <module>
    main()
  File "/Users/rodrigodelaporte/Documents/code/harlan/manage.py", line 18, in main
    execute_from_command_line(sys.argv)
  File "/Users/rodrigodelaporte/Documents/code/harlan/venv/lib/python3.10/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/Users/rodrigodelaporte/Documents/code/harlan/venv/lib/python3.10/site-packages/django/core/management/__init__.py", line 413, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/Users/rodrigodelaporte/Documents/code/harlan/venv/lib/python3.10/site-packages/django/core/management/__init__.py", line 257, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/Users/rodrigodelaporte/Documents/code/harlan/venv/lib/python3.10/site-packages/django/core/management/__init__.py", line 39, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/Users/rodrigodelaporte/Documents/code/harlan/venv/lib/python3.10/site-packages/django/core/management/commands/runserver.py", line 10, in <module>
    from django.core.servers.basehttp import (
  File "/Users/rodrigodelaporte/Documents/code/harlan/venv/lib/python3.10/site-packages/django/core/servers/basehttp.py", line 17, in <module>
    from django.core.handlers.wsgi import LimitedStream
  File "/Users/rodrigodelaporte/Documents/code/harlan/venv/lib/python3.10/site-packages/django/core/handlers/wsgi.py", line 5, in <module>
    from django.core.handlers import base
  File "/Users/rodrigodelaporte/Documents/code/harlan/venv/lib/python3.10/site-packages/django/core/handlers/base.py", line 11, in <module>
    from django.urls import get_resolver, set_urlconf
  File "/Users/rodrigodelaporte/Documents/code/harlan/venv/lib/python3.10/site-packages/django/urls/__init__.py", line 1, in <module>
    from .base import (
  File "/Users/rodrigodelaporte/Documents/code/harlan/venv/lib/python3.10/site-packages/django/urls/base.py", line 8, in <module>
    from .exceptions import NoReverseMatch, Resolver404
  File "/Users/rodrigodelaporte/Documents/code/harlan/venv/lib/python3.10/site-packages/django/urls/exceptions.py", line 1, in <module>
    from django.http import Http404
  File "/Users/rodrigodelaporte/Documents/code/harlan/venv/lib/python3.10/site-packages/django/http/__init__.py", line 5, in <module>
    from django.http.response import (
  File "/Users/rodrigodelaporte/Documents/code/harlan/venv/lib/python3.10/site-packages/django/http/response.py", line 16, in <module>
    from django.core.serializers.json import DjangoJSONEncoder
  File "/Users/rodrigodelaporte/Documents/code/harlan/venv/lib/python3.10/site-packages/django/core/serializers/__init__.py", line 23, in <module>
    from django.core.serializers.base import SerializerDoesNotExist
  File "/Users/rodrigodelaporte/Documents/code/harlan/venv/lib/python3.10/site-packages/django/core/serializers/base.py", line 7, in <module>
    from django.db import models
  File "/Users/rodrigodelaporte/Documents/code/harlan/venv/lib/python3.10/site-packages/django/db/models/__init__.py", line 20, in <module>
    from django.db.models.fields.files import FileField, ImageField
  File "/Users/rodrigodelaporte/Documents/code/harlan/venv/lib/python3.10/site-packages/django/db/models/fields/files.py", line 8, in <module>
    from django.core.files.storage import Storage, default_storage
  File "/Users/rodrigodelaporte/Documents/code/harlan/venv/lib/python3.10/site-packages/django/core/files/storage/__init__.py", line 3, in <module>
    from django.conf import DEFAULT_STORAGE_ALIAS, settings
ImportError: cannot import name 'DEFAULT_STORAGE_ALIAS' from 'django.conf' (/Users/rodrigodelaporte/Documents/code/harlan/venv/lib/python3.10/site-packages/django/conf/__init__.py)
Back to Top