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:18:58 -0400 |
| commit | 261738990e07a039b39aab0664eea71f226cd381 (patch) | |
| tree | f1d1ca3a42d35679822f818fd3190ca38fab6664 | |
| parent | 19ff506878071ac93de684fe01328707e75e2b3a (diff) | |
Added syntax highlighting to CSRF example.
| -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 6303f7d437..332fd40afa 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 %} |
