Skip to content

Commit 26dc654

Browse files
Fixed #11884 -- Clarified documentation to explain how to activate the built-in admin reference. Thanks, DmitryRisenberg and timo
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12178 bcc190cf-cafb-0310-a4f2-bffc1f526a37
1 parent 91d9108 commit 26dc654

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

docs/topics/templates.txt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,8 +577,18 @@ Using the built-in reference
577577
============================
578578

579579
Django's admin interface includes a complete reference of all template tags and
580-
filters available for a given site. To see it, go to your admin interface and
581-
click the "Documentation" link in the upper right of the page.
580+
filters available for a given site. To activate it, follow these steps:
581+
582+
* Add :mod:`django.contrib.admindocs` to your :setting:`INSTALLED_APPS`.
583+
* Add ``(r'^admin/doc/', include('django.contrib.admindocs.urls'))`` to your
584+
:data:`urlpatterns`. Make sure it's included *before* the ``r'^admin/'``
585+
entry, so that requests to ``/admin/doc/`` don't get handled by the
586+
latter entry.
587+
* Install the docutils module (http://docutils.sf.net/).
588+
589+
After you've followed those steps, you can start browsing the documentation by
590+
going to your admin interface and clicking the "Documentation" link in the
591+
upper right of the page.
582592

583593
The reference is divided into 4 sections: tags, filters, models, and views.
584594

0 commit comments

Comments
 (0)