Kaydet (Commit) 26173899 authored tarafından B. J. Potter's avatar B. J. Potter Kaydeden (comit) Tim Graham

Added syntax highlighting to CSRF example.

üst 19ff5068
...@@ -37,7 +37,9 @@ To take advantage of CSRF protection in your views, follow these steps: ...@@ -37,7 +37,9 @@ To take advantage of CSRF protection in your views, follow these steps:
you want to protect (see below). you want to protect (see below).
2. In any template that uses a POST form, use the :ttag:`csrf_token` tag inside 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 %} <form action="" method="post">{% csrf_token %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment