Commit 19cb66a5 authored by B. J. Potter's avatar B. J. Potter Committed by Tim Graham
Browse files

[1.9.x] Added syntax highlighting to CSRF example.

Backport of 26173899 from master
parent 5d60eb8b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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 %}