Ticket #29100: base.patch
File base.patch, 570 bytes (added by , 7 years ago) |
---|
-
base.py
old new 78 78 # Setup default url resolver for this thread 79 79 set_urlconf(settings.ROOT_URLCONF) 80 80 81 if self._middleware_chain is None: 82 if self.__class__.__name__ == 'StaticFilesHandler': 83 uri = '%s' % (request.get_full_path() ) 84 raise ValueError('Bad path for static file: %s' % uri) 85 81 86 response = self._middleware_chain(request) 82 87 83 88 response._closable_objects.append(request)