Browse Source

Update django-debug-toolbar to 1.8

pull/109/head
Takuya Noguchi 8 years ago
parent
commit
fee846019b
3 changed files with 10 additions and 1 deletions
  1. +2
    -0
      project/settings.py
  2. +7
    -0
      project/urls.py
  3. +1
    -1
      requirements.txt

+ 2
- 0
project/settings.py View File

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

+ 7
- 0
project/urls.py View File

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

+ 1
- 1
requirements.txt View File

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

Loading…
Cancel
Save