diff options
| author | Aymeric Augustin | 2013-11-12 22:40:20 +0100 |
|---|---|---|
| committer | Aymeric Augustin | 2013-11-12 22:40:20 +0100 |
| commit | 1062d9cf878b4bdc6f0e0f6434668cd7eb289998 (patch) | |
| tree | e3e400deec4a8c772fbc025e9144b0a380715b43 /tests | |
| parent | f48039e3bad9e24a59a25ed5636b428e11784da9 (diff) | |
| download | django-debug-toolbar-1062d9cf878b4bdc6f0e0f6434668cd7eb289998.tar.bz2 | |
Make it possible for panels to provide URLs and views.
Fix #448.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/__init__.py | 1 | ||||
| -rw-r--r-- | tests/urls.py | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/__init__.py b/tests/__init__.py index b3b9440..3bf8994 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -20,3 +20,4 @@ def update_toolbar_panels(**kwargs): if kwargs['setting'] == 'DEBUG_TOOLBAR_PANELS': dt_settings.PANELS = kwargs['value'] or dt_settings.PANELS_DEFAULTS DebugToolbar._panel_classes = None + # Not implemented: invalidate debug_toolbar.urls diff --git a/tests/urls.py b/tests/urls.py index d4417a1..f297834 100644 --- a/tests/urls.py +++ b/tests/urls.py @@ -5,6 +5,8 @@ from __future__ import unicode_literals from django.conf.urls import include, patterns, url from django.contrib import admin +import debug_toolbar + from .models import NonAsciiRepr @@ -18,5 +20,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')), + url(r'^__debug__/', include(debug_toolbar.urls)), ) |
