Code

Ticket #11884: templates_doc.diff

File templates_doc.diff, 1.1 KB (added by DmitryRisenberg, 5 years ago)

Patch to documentation

Line 
1Index: docs/topics/templates.txt
2===================================================================
3--- docs/topics/templates.txt   (revision 11580)
4+++ docs/topics/templates.txt   (working copy)
5@@ -582,9 +582,18 @@
6 ============================
7 
8 Django's admin interface includes a complete reference of all template tags and
9-filters available for a given site. To see it, go to your admin interface and
10-click the "Documentation" link in the upper right of the page.
11+filters available for a given site. To make it work, do the following steps:
12 
13+* Add :mod:`django.contrib.admindocs.urls` to your :setting:`INSTALLED_APPS`.
14+* Add ``(r'^admin/doc/', include('django.contrib.admindocs.urls'))`` to your
15+  :data:`urlpatterns`.
16+* Make sure docutils__ module is installed on your system.
17+
18+__ http://docutils.sf.net/
19+
20+After that you can start browsing the documentation by going to your admin
21+interface and clicking the "Documentation" link in the upper right of the page.
22+
23 The reference is divided into 4 sections: tags, filters, models, and views.
24 
25 The **tags** and **filters** sections describe all the built-in tags (in fact,