Top "Django-middleware" questions

Middleware is a framework of hooks into Django’s request/response processing.

Django ImportError: No module named middleware

I am using Django version 1.8 and python 2.7. I am getting the following error after running my project. Traceback (most recent …

python django django-settings django-middleware
django error: ImproperlyConfigured: WSGI application

My application was working last night, not sure why it won't work this morning. I think that all I did …

python django wsgi django-middleware
'WSGIRequest' object has no attribute 'session' while upgrading from django 1.3 to 1.9

Similar to this question 'WSGIRequest' object has no attribute 'session' But my MIDDLEWARE classes are in the correct order. INSTALLED_…

python django django-middleware
Non-global middleware in Django

In Django there is a settings file that defines the middleware to be run on each request. This middleware setting …

python django middleware django-middleware
'WSGIRequest' object has no attribute 'session'

I get this error sometimes in custom Middleware in process_response method. I have the following list of middlewares: MIDDLEWARE_…

django django-middleware
Execute code in Django after response has been sent to the client

In my Django application I want to keep track of whether a response has been sent to the client successfully. …

django http django-views httpresponse django-middleware
Override Django authentication with middleware

I have a Django website and a MyBB forum, and I'd like to share authentication between them. My website used …

django authentication django-middleware