Skip to content

Commit 82a1366

Browse files
committed
Correct wiring for debug toolbar
1 parent b51501e commit 82a1366

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

hackday/urls.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
# Serve uploaded media during development
1010
urlpatterns = static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
1111

12+
# Enable debug toolbar in debug mode
13+
if settings.DEBUG:
14+
import debug_toolbar
15+
urlpatterns += patterns('',
16+
url(r'^__debug__/', include(debug_toolbar.urls)),
17+
)
18+
1219
urlpatterns += patterns('',
1320
# Examples:
1421
# url(r'^$', 'hackday.views.home', name='home'),
@@ -72,3 +79,4 @@
7279
handler403 = 'hackday.common.forbidden'
7380
handler404 = 'hackday.common.not_found'
7481
handler500 = 'hackday.common.server_error'
82+

0 commit comments

Comments
 (0)