urls: allow use of django-debug-toolbar (fixes #22945)
This commit is contained in:
parent
4ecdbada32
commit
3fae61924c
|
@ -33,5 +33,11 @@ urlpatterns = [
|
|||
url(r'^api/', include('fargo.oauth2.urls')),
|
||||
]
|
||||
|
||||
if settings.DEBUG and 'debug_toolbar' in settings.INSTALLED_APPS:
|
||||
import debug_toolbar
|
||||
urlpatterns = [
|
||||
url(r'^__debug__/', include(debug_toolbar.urls)),
|
||||
] + urlpatterns
|
||||
|
||||
if 'mellon' in settings.INSTALLED_APPS:
|
||||
urlpatterns.append(url(r'^accounts/mellon/', include('mellon.urls')))
|
||||
|
|
Loading…
Reference in New Issue