diff options
| author | Aymeric Augustin | 2013-11-11 17:54:48 +0100 |
|---|---|---|
| committer | Aymeric Augustin | 2013-11-11 19:33:52 +0100 |
| commit | eb244f71bfc9cdd5cb4341f98002e03de3414287 (patch) | |
| tree | 2608f0c8edc48c6bc5e7db7c9bdb5322c4f534c8 /tests/urls.py | |
| parent | ede259fb087b9049c68065cded70fa48861807f7 (diff) | |
| download | django-debug-toolbar-eb244f71bfc9cdd5cb4341f98002e03de3414287.tar.bz2 | |
Don't set up the toolbar when DEBUG = False.
Diffstat (limited to 'tests/urls.py')
| -rw-r--r-- | tests/urls.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/urls.py b/tests/urls.py index 977084b..d4417a1 100644 --- a/tests/urls.py +++ b/tests/urls.py @@ -2,7 +2,7 @@ from __future__ import unicode_literals -from django.conf.urls import patterns, url +from django.conf.urls import include, patterns, url from django.contrib import admin from .models import NonAsciiRepr @@ -18,4 +18,5 @@ urlpatterns = patterns('tests.views', # noqa url(r'^non_ascii_request/$', 'regular_view', {'title': NonAsciiRepr()}), url(r'^new_user/$', 'new_user'), url(r'^execute_sql/$', 'execute_sql'), + url(r'^__debug__/', include('debug_toolbar.urls', namespace='djdt', app_name='djdt')), ) |
