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 /docs | |
| 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 'docs')
| -rw-r--r-- | docs/installation.rst | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/docs/installation.rst b/docs/installation.rst index 514548a..3d71e12 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -57,15 +57,14 @@ Add the Debug Toolbar's URLs to your project's URLconf as follows:: from django.conf.urls import include, patterns, url if settings.DEBUG: + import debug_toolbar urlpatterns += patterns('', - url(r'^__debug__/', include('debug_toolbar.urls', namespace='djdt', app_name='djdt')), + url(r'^__debug__/', include(debug_toolbar.urls)), ) This example uses the ``__debug__`` prefix, but you can use any prefix that -doesn't clash with your application's URLs. - -It is mandatory to use the ``djdt`` namespace as shown above. This avoids -conflicts when reversing URLs by name. +doesn't clash with your application's URLs. Note the lack of quotes around +``debug_toolbar.urls``. If the URLs aren't included in your root URLconf, the Debug Toolbar automatically appends them. |
