Browse files

Folded django.core.handler.CoreHandler.get_request() into CoreHandler…


git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent dd85d8d commit f3a43a2dd4b111fdf330c023478d586b3f015546 @adrianholovaty adrianholovaty committed Jul 18, 2005
Showing with 2 additions and 6 deletions.
  1. +2 −6 django/core/
@@ -18,13 +18,14 @@ def __call__(self, req):
# that use settings now can work
from django.conf import settings
from django.core import db
+ from django.core.extensions import DjangoRequest
# if we need to set up middleware, now that settings works we can do it now.
if self._request_middleware is None:
- request = self.get_request(req)
+ request = DjangoRequest(req)
response = self.get_response(req.uri, request)
@@ -72,11 +73,6 @@ def load_middleware(self):
if hasattr(mw_instance, 'process_response'):
self._response_middleware.insert(0, mw_instance.process_response)
- def get_request(self, req):
- "Returns an HttpRequest object for the given mod_python req object"
- from django.core.extensions import DjangoRequest
- return DjangoRequest(req)
def get_response(self, path, request):
"Returns an HttpResponse object for the given HttpRequest"
from django.core import db, exceptions, urlresolvers

0 comments on commit f3a43a2

Please sign in to comment.