diff options
Diffstat (limited to 'docs/ref/csrf.txt')
| -rw-r--r-- | docs/ref/csrf.txt | 4 |
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 %} |
