It's literally there.

Vpziew in your middleware settings.

On Sat, 5 Nov 2022 at 23:07, Balogun Awwal <awwalbalogu...@gmail.com> wrote:

> 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.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJ434RuxkK0nO%3D5%3D1PJEm2%2B0-becZxqsmFZwOzC%2BWA9uY6_yYw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJ434RuxkK0nO%3D5%3D1PJEm2%2B0-becZxqsmFZwOzC%2BWA9uY6_yYw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFKhtoSZgKuwCwWP-NCH-JztUHC32t-YJ5DK3sB231h_socmDA%40mail.gmail.com.

Reply via email to