Update django-debug-toolbar to 1.8
This commit is contained in:
parent
ad54b3b65e
commit
fee846019b
3 changed files with 10 additions and 1 deletions
|
@ -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']
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue