add django-debug-toolbar urlpatterns

This commit is contained in:
Fabio C. Barrioneuvo da Luz 2016-09-29 13:09:49 -03:00
parent 2f8a7d0641
commit bbcd408193

View File

@ -33,3 +33,9 @@ if settings.DEBUG:
url(r'^404/$', default_views.page_not_found, kwargs={'exception': Exception('Page not Found')}), url(r'^404/$', default_views.page_not_found, kwargs={'exception': Exception('Page not Found')}),
url(r'^500/$', default_views.server_error), url(r'^500/$', default_views.server_error),
] ]
if 'debug_toolbar' in settings.INSTALLED_APPS:
import debug_toolbar
urlpatterns += [
url(r'^__debug__/', include(debug_toolbar.urls)),
]