Python debug_toolbar.urls() Examples
The following are 1
code examples of debug_toolbar.urls().
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
debug_toolbar
, or try the search function
.
Example #1
Source File: urls.py From gro-api with GNU General Public License v2.0 | 5 votes |
def get_current_urls(): urls = BaseRouter.get_instance().urls + [ url(r'^auth/', include(auth_patterns)), url(r'^auth/registration/', include(auth_registration_patterns)), url(r'^docs/', include('rest_framework_swagger.urls')), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) if settings.DEBUG: import debug_toolbar urls.append(url(r'^__debug__/', include(debug_toolbar.urls))) return urls