summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2011-12-30 20:36:54 +0000
committerAdrian Holovaty <adrian@holovaty.com>2011-12-30 20:36:54 +0000
commit937213c2c37f71be1b112d9767f6ee8aecf0cfcf (patch)
tree0d72cf1975035f47c93dd9c59d50ae952792f4ec /docs/ref
parent1fed65224f2b5912f8d28cf6de47577f287088e9 (diff)
Edited csrf.txt changes from [17299]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17309 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/csrf.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/ref/contrib/csrf.txt b/docs/ref/contrib/csrf.txt
index feeba2280c..006d63b7a3 100644
--- a/docs/ref/contrib/csrf.txt
+++ b/docs/ref/contrib/csrf.txt
@@ -150,10 +150,11 @@ Other template engines
----------------------
When using a different template engine than Django's built-in engine, you can
-set the token in your forms manually after making sure it is available in the
-context of the template.
+set the token in your forms manually after making sure it's available in the
+template context.
-So in Cheetah for example, your form could contain the following:
+For example, in the Cheetah template language, your form could contain the
+following:
.. code-block:: html
@@ -161,7 +162,7 @@ So in Cheetah for example, your form could contain the following:
<input type="hidden" name="csrfmiddlewaretoken" value="$csrf_token"/>
</div>
-You may use javascript similar to the :ref:`AJAX code <csrf-ajax>` above to get
+You can use JavaScript similar to the :ref:`AJAX code <csrf-ajax>` above to get
the value of the CSRF token.
The decorator method