Updated admindocs instructions for the deprecation of patterns().
This commit is contained in:
parent
4373eac998
commit
4dea29ec7b
|
@ -28,7 +28,7 @@ To activate the :mod:`~django.contrib.admindocs`, you will need to do
|
||||||
the following:
|
the following:
|
||||||
|
|
||||||
* Add :mod:`django.contrib.admindocs` to your :setting:`INSTALLED_APPS`.
|
* Add :mod:`django.contrib.admindocs` to your :setting:`INSTALLED_APPS`.
|
||||||
* Add ``(r'^admin/doc/', include('django.contrib.admindocs.urls'))`` to
|
* Add ``url(r'^admin/doc/', include('django.contrib.admindocs.urls'))`` to
|
||||||
your ``urlpatterns``. Make sure it's included *before* the
|
your ``urlpatterns``. Make sure it's included *before* the
|
||||||
``r'^admin/'`` entry, so that requests to ``/admin/doc/`` don't get
|
``r'^admin/'`` entry, so that requests to ``/admin/doc/`` don't get
|
||||||
handled by the latter entry.
|
handled by the latter entry.
|
||||||
|
|
Loading…
Reference in New Issue