Skip to content

Commit 0efb8c8

Browse files
jwkcpmatthiask
authored andcommitted
Update installation.rst
Add urlpatterns for django version 2.0 or later
1 parent 9763d10 commit 0efb8c8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/installation.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,14 @@ Add the Debug Toolbar's URLs to your project's URLconf as follows::
4848
if settings.DEBUG:
4949
import debug_toolbar
5050
urlpatterns = [
51+
52+
# For django version 2.0 or later
53+
path('__debug__/', include(debug_toolbar.urls)),
54+
55+
Old-style urlpatterns::
56+
5157
url(r'^__debug__/', include(debug_toolbar.urls)),
58+
5259
] + urlpatterns
5360

5461
This example uses the ``__debug__`` prefix, but you can use any prefix that

0 commit comments

Comments
 (0)