File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 110
110
STATIC_ROOT = os .path .join (BASE_DIR , 'staticfiles' )
111
111
112
112
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
113
+
114
+ INTERNAL_IPS = ['127.0.0.1' ]
Original file line number Diff line number Diff line change
1
+ from django .conf import settings
1
2
from django .conf .urls import include , url
2
3
from django .contrib import admin
3
4
12
13
url (r'^health$' , health ),
13
14
url (r'^admin/' , include (admin .site .urls )),
14
15
]
16
+
17
+ if settings .DEBUG :
18
+ import debug_toolbar
19
+ urlpatterns = [
20
+ url (r'^__debug__/' , include (debug_toolbar .urls )),
21
+ ] + urlpatterns
Original file line number Diff line number Diff line change 1
1
django >= 1.8 ,< 1.9
2
- django-debug-toolbar == 1.5
2
+ django-debug-toolbar == 1.8
3
3
gunicorn == 19.4.5
4
4
psycopg2 == 2.7.3.1
5
5
whitenoise == 3.0
You can’t perform that action at this time.
0 commit comments