Update django-debug-toolbar to 1.8

This commit is contained in:
Takuya Noguchi 2017-10-25 00:38:42 +09:00
parent ad54b3b65e
commit fee846019b
3 changed files with 10 additions and 1 deletions

View file

@ -110,3 +110,5 @@ STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
INTERNAL_IPS = ['127.0.0.1']

View file

@ -1,3 +1,4 @@
from django.conf import settings
from django.conf.urls import include, url from django.conf.urls import include, url
from django.contrib import admin from django.contrib import admin
@ -12,3 +13,9 @@ urlpatterns = [
url(r'^health$', health), url(r'^health$', health),
url(r'^admin/', include(admin.site.urls)), url(r'^admin/', include(admin.site.urls)),
] ]
if settings.DEBUG:
import debug_toolbar
urlpatterns = [
url(r'^__debug__/', include(debug_toolbar.urls)),
] + urlpatterns

View file

@ -1,5 +1,5 @@
django>=1.8,<1.9 django>=1.8,<1.9
django-debug-toolbar==1.5 django-debug-toolbar==1.8
gunicorn==19.4.5 gunicorn==19.4.5
psycopg2==2.7.3.1 psycopg2==2.7.3.1
whitenoise==3.0 whitenoise==3.0