diff options
| author | Aymeric Augustin | 2013-12-12 12:47:02 -0800 |
|---|---|---|
| committer | Aymeric Augustin | 2013-12-12 12:47:02 -0800 |
| commit | 59e4931d5880ed24cb49734e81c7ed538c98fa45 (patch) | |
| tree | 0dd84285edf0732ca079f77453be733e79c0561d | |
| parent | 7716a53bdd0dd2547056bad901253c1eedfb581a (diff) | |
| parent | b21269532cbd23ab61f6c80951fae89b18675804 (diff) | |
| download | django-debug-toolbar-59e4931d5880ed24cb49734e81c7ed538c98fa45.tar.bz2 | |
Merge pull request #496 from fusionbox/catch-all
Put debug_toolbar's url patterns first
| -rw-r--r-- | debug_toolbar/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debug_toolbar/models.py b/debug_toolbar/models.py index c9a12d8..4e624fa 100644 --- a/debug_toolbar/models.py +++ b/debug_toolbar/models.py @@ -51,9 +51,9 @@ def patch_root_urlconf(): reverse('djdt:render_panel') except NoReverseMatch: urlconf_module = import_module(settings.ROOT_URLCONF) - urlconf_module.urlpatterns += patterns('', # noqa + urlconf_module.urlpatterns = patterns('', # noqa url(r'^__debug__/', include(debug_toolbar.urls)), - ) + ) + urlconf_module.urlpatterns clear_url_caches() |
