#32605: Custom Middleware Error ====> WSGI application
'<ProjectName>.wsgi.application' could not be loaded; Error importing
module.
-------------------------------------+-------------------------------------
     Reporter:  alimp5               |                    Owner:  nobody
         Type:  Uncategorized        |                   Status:  closed
    Component:  Core (System         |                  Version:  3.1
  checks)                            |
     Severity:  Normal               |               Resolution:  invalid
     Keywords:  Middleware, WSGI-    |             Triage Stage:
  Error, Windows, Django3.1          |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by alimp5):

 # FROM:
 {{{
 MIDDLEWARE = [
     'django.middleware.security.SecurityMiddleware',
     'django.contrib.sessions.middleware.SessionMiddleware',
     'django.middleware.common.CommonMiddleware',
     'django.middleware.csrf.CsrfViewMiddleware',
     'django.contrib.auth.middleware.AuthenticationMiddleware',
     'django.contrib.messages.middleware.MessageMiddleware',
     'django.middleware.clickjacking.XFrameOptionsMiddleware',

     'coffehouse.utils.middleware.CoffehouseMiddleware',    <===
 ]

 }}}


 #### TO:
 {{{
 MIDDLEWARE = [
     'django.middleware.security.SecurityMiddleware',
     'django.contrib.sessions.middleware.SessionMiddleware',
     'django.middleware.common.CommonMiddleware',
     'django.middleware.csrf.CsrfViewMiddleware',
     'django.contrib.auth.middleware.AuthenticationMiddleware',
     'django.contrib.messages.middleware.MessageMiddleware',
     'django.middleware.clickjacking.XFrameOptionsMiddleware',

 'coffehouse.utils.middleware.CoffehouseMiddleware.CoffehouseMiddleware',
 <===
 ]

 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32605#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.2cb6ebea66276e4f18c75fc595ed3608%40djangoproject.com.

Reply via email to