Skip to content

Commit fee8460

Browse files
committed
Update django-debug-toolbar to 1.8
1 parent ad54b3b commit fee8460

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

project/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,5 @@
110110
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
111111

112112
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
113+
114+
INTERNAL_IPS = ['127.0.0.1']

project/urls.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from django.conf import settings
12
from django.conf.urls import include, url
23
from django.contrib import admin
34

@@ -12,3 +13,9 @@
1213
url(r'^health$', health),
1314
url(r'^admin/', include(admin.site.urls)),
1415
]
16+
17+
if settings.DEBUG:
18+
import debug_toolbar
19+
urlpatterns = [
20+
url(r'^__debug__/', include(debug_toolbar.urls)),
21+
] + urlpatterns

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
django>=1.8,<1.9
2-
django-debug-toolbar==1.5
2+
django-debug-toolbar==1.8
33
gunicorn==19.4.5
44
psycopg2==2.7.3.1
55
whitenoise==3.0

0 commit comments

Comments
 (0)