Ticket #9805: reverse.diff
File reverse.diff, 1.5 KB (added by , 16 years ago) |
---|
-
django/core/handlers/wsgi.py
219 219 def __call__(self, environ, start_response): 220 220 from django.conf import settings 221 221 222 set_script_prefix(base.get_script_name(environ)) 223 222 224 # Set up middleware if needed. We couldn't do this earlier, because 223 225 # settings weren't available. 224 226 if self._request_middleware is None: … … 228 230 self.load_middleware() 229 231 self.initLock.release() 230 232 231 set_script_prefix(base.get_script_name(environ))232 233 signals.request_started.send(sender=self.__class__) 233 234 try: 234 235 try: -
django/core/handlers/modpython.py
186 186 # that use settings now can work 187 187 from django.conf import settings 188 188 189 set_script_prefix(req.get_options().get('django.root', '')) 190 189 191 # if we need to set up middleware, now that settings works we can do it now. 190 192 if self._request_middleware is None: 191 193 self.load_middleware() 192 194 193 set_script_prefix(req.get_options().get('django.root', '')) 195 194 196 signals.request_started.send(sender=self.__class__) 195 197 try: 196 198 try: