Python django.conf.urls.defaults.include() Examples
The following are 1
code examples of django.conf.urls.defaults.include().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
django.conf.urls.defaults
, or try the search function
.
Example #1
Source File: middleware.py From canvas with BSD 3-Clause "New" or "Revised" License | 5 votes |
def process_request(self, request): if self.show_toolbar(request): if self.override_url: original_urlconf = getattr(request, 'urlconf', settings.ROOT_URLCONF) debug_toolbar.urls.urlpatterns += patterns('', ('', include(original_urlconf)), ) self.override_url = False request.urlconf = 'debug_toolbar.urls' self.debug_toolbars[request] = DebugToolbar(request) for panel in self.debug_toolbars[request].panels: panel.process_request(request)