Skip to content

Commit 3728860

Browse files
committed
Put the debug toolbar at the beginning of urlpatterns.
Otherwise devs get confused with catchall urlpatterns.
1 parent 5353ba6 commit 3728860

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/installation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ Add the Debug Toolbar's URLs to your project's URLconf as follows::
4747

4848
if settings.DEBUG:
4949
import debug_toolbar
50-
urlpatterns += [
50+
urlpatterns = [
5151
url(r'^__debug__/', include(debug_toolbar.urls)),
52-
]
52+
] + urlpatterns
5353

5454
This example uses the ``__debug__`` prefix, but you can use any prefix that
5555
doesn't clash with your application's URLs. Note the lack of quotes around

0 commit comments

Comments
 (0)