summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorB. J. Potter <bjpotter@gmail.com>2016-06-02 14:08:30 -0700
committerTim Graham <timograham@gmail.com>2016-06-03 15:19:28 -0400
commit19cb66a54a0944a343cb11e4dfe98221138ca68c (patch)
treebf3749b707fe10989cc9faa32739cd40145da86f /docs/ref
parent5d60eb8bd72ee7d8a99f34ea060d9c3f4c3a6ff9 (diff)
[1.9.x] Added syntax highlighting to CSRF example.
Backport of 261738990e07a039b39aab0664eea71f226cd381 from master
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/csrf.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/ref/csrf.txt b/docs/ref/csrf.txt
index 42c5754512..bc8e05a5e6 100644
--- a/docs/ref/csrf.txt
+++ b/docs/ref/csrf.txt
@@ -37,7 +37,9 @@ To take advantage of CSRF protection in your views, follow these steps:
you want to protect (see below).
2. In any template that uses a POST form, use the :ttag:`csrf_token` tag inside
- the ``<form>`` element if the form is for an internal URL, e.g.::
+ the ``<form>`` element if the form is for an internal URL, e.g.:
+
+ .. code-block:: html+django
<form action="" method="post">{% csrf_token %}