@ -132,6 +132,7 @@ MIDDLEWARE = [
if DEBUG:
INSTALLED_APPS += ('debug_toolbar', 'rest_framework_docs',)
MIDDLEWARE += ['debug_toolbar.middleware.DebugToolbarMiddleware', ]
INTERNAL_IPS = ('127.0.0.1')
CACHES = {
@ -70,6 +70,12 @@ urlpatterns = [
# http://stackoverflow.com/questions/35510373/
if settings.DEBUG:
import debug_toolbar
urlpatterns += [
url(r'^__debug__/', include(debug_toolbar.urls)),
]
urlpatterns += static(settings.STATIC_URL,
document_root=settings.STATIC_ROOT)