Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed SessionMiddleware to use process_request instead of process_v…

…iew -- that way it always gets called, even for 404s

git-svn-id: http://code.djangoproject.com/svn/django/trunk@545 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 928832d6e03c8e1b86c9fcf2b4819c0625c920d0 1 parent 601a892
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 4 deletions.
  1. +0 −3  django/middleware/common.py
  2. +1 −1  django/middleware/sessions.py
View
3  django/middleware/common.py
@@ -22,9 +22,6 @@ class CommonMiddleware:
- Flat files: for 404 responses, a flat file matching the given path
will be looked up and used if found.
-
- You probably want the CommonMiddleware object to the first entry in your
- MIDDLEWARE_CLASSES setting;
"""
def process_request(self, request):
View
2  django/middleware/sessions.py
@@ -52,7 +52,7 @@ def _get_session(self):
_session = property(_get_session)
class SessionMiddleware:
- def process_view(self, request, view_func, param_dict):
+ def process_request(self, request):
request.session = SessionWrapper(request.COOKIES.get(SESSION_COOKIE_NAME, None))
def process_response(self, request, response):
Please sign in to comment.
Something went wrong with that request. Please try again.