Attempt to enable Debug Toolbar

parent 92449a17
Pipeline #6435 failed with stage
in 33 seconds
......@@ -6,9 +6,9 @@ INSTALLED_APPS = INSTALLED_APPS + (
'debug_toolbar',
)
MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + (
MIDDLEWARE_CLASSES = (
'debug_toolbar.middleware.DebugToolbarMiddleware',
)
) + MIDDLEWARE_CLASSES
DATABASES = {
'default': {
......
from django.conf import settings
from django.conf.urls import include, url
from rest_framework import routers
......@@ -54,3 +55,10 @@ urlpatterns = [
url(r'^docs/', include('rest_framework_swagger.urls')),
url(r'^', include(router.urls)),
]
if settings.DEBUG:
import debug_toolbar
urlpatterns = [
url(r'^__debug__/', include(debug_toolbar.urls)),
] + urlpatterns
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment