everything was working perfectly befor until i installed django debug toolbar
Exception in thread django-main-thread:
Traceback (most recent call last):
File "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/utils/module_loading.py", line 30, in import_string
return cached_import(module_path, class_name)
File "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/utils/module_loading.py", line 16, in cached_import
return getattr(module, class_name)
AttributeError: module 'django.middleware.csrf' has no attribute 'CsrfVpziewMiddleware'. Did you mean: 'CsrfViewMiddleware'?
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/core/servers/basehttp.py", line 47, in get_internal_wsgi_application
return import_string(app_path)
File "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/utils/module_loading.py", line 30, in import_string
return cached_import(module_path, class_name)
File "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/utils/module_loading.py", line 15, in cached_import
module = import_module(module_path)
File "/usr/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 "/home/leo/Documents/storefront/storefront/wsgi.py", line 16, in <module>
application = get_wsgi_application()
File "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application
return WSGIHandler()
File "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/core/handlers/wsgi.py", line 125, in __init__
self.load_middleware()
File "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/core/handlers/base.py", line 40, in load_middleware
middleware = import_string(middleware_path)
File "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/utils/module_loading.py", line 32, in import_string
raise ImportError(
ImportError: Module "django.middleware.csrf" does not define a "CsrfVpziewMiddleware" attribute/class
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 946, in run
self._target(*self._args, **self._kwargs)
File "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/utils/autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/core/management/commands/runserver.py", line 157, in inner_run
handler = self.get_handler(*args, **options)
File "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/contrib/staticfiles/management/commands/runserver.py", line 31, in get_handler
handler = super().get_handler(*args, **options)
File "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/core/management/commands/runserver.py", line 78, in get_handler
return get_internal_wsgi_application()
File "/home/leo/Documents/storefront/env/lib/python3.10/site-packages/django/core/servers/basehttp.py", line 49, in get_internal_wsgi_application
raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: WSGI application 'storefront.wsgi.application' could not be loaded; Error importing module.