summaryrefslogtreecommitdiff
path: root/docs/intro/tutorial04.txt
diff options
context:
space:
mode:
authorJulien Phalip <jphalip@gmail.com>2011-10-03 08:06:01 +0000
committerJulien Phalip <jphalip@gmail.com>2011-10-03 08:06:01 +0000
commitc2b9f6496e59c9268fb265ea80df8c8d7ec88034 (patch)
tree94e8c615e5ee9294ca5f5acc1aebcb0935b11bd2 /docs/intro/tutorial04.txt
parent0d9b6a5bc43c06716212bd3f847460ce985381aa (diff)
downloaddjango-c2b9f6496e59c9268fb265ea80df8c8d7ec88034.tar.gz
Added some sphinx cross-reference links to the built-in template tags and filters in multiple areas of the documentation. Also fixed a few minor inconsistencies and did a little PEP8 cleanup while I was at it.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16922 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/intro/tutorial04.txt')
-rw-r--r--docs/intro/tutorial04.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/intro/tutorial04.txt b/docs/intro/tutorial04.txt
index f0d2abc191..2763850ecd 100644
--- a/docs/intro/tutorial04.txt
+++ b/docs/intro/tutorial04.txt
@@ -49,13 +49,13 @@ A quick rundown:
data), we need to worry about Cross Site Request Forgeries.
Thankfully, you don't have to worry too hard, because Django comes with
a very easy-to-use system for protecting against it. In short, all POST
- forms that are targeted at internal URLs should use the ``{% csrf_token %}``
- template tag.
+ forms that are targeted at internal URLs should use the
+ :ttag:`{% csrf_token %}<csrf_token>` template tag.
-The ``{% csrf_token %}`` tag requires information from the request object, which
-is not normally accessible from within the template context. To fix this, a
-small adjustment needs to be made to the ``detail`` view, so that it looks like
-the following::
+The :ttag:`{% csrf_token %}<csrf_token>` tag requires information from the
+request object, which is not normally accessible from within the template
+context. To fix this, a small adjustment needs to be made to the ``detail``
+view, so that it looks like the following::
from django.template import RequestContext
# ...