diff options
| author | B. J. Potter <bjpotter@gmail.com> | 2016-06-02 14:08:30 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-06-03 15:19:23 -0400 |
| commit | 2e7ec15f53ab4fb485831e2ae50c34229e152c7d (patch) | |
| tree | 4052aaa4b2d18a263573f7ff15d87d02c73313f4 /docs/ref | |
| parent | 9a204fc8a52d79942325ed984d48e5aef5b64d21 (diff) | |
[1.10.x] Added syntax highlighting to CSRF example.
Backport of 261738990e07a039b39aab0664eea71f226cd381 from master
Diffstat (limited to 'docs/ref')
| -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 7e4aef5479..77c52ee59a 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 %} |
