1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Removed unnecessary code-block directives.

This commit is contained in:
areski
2014-08-18 16:30:44 +02:00
committed by Tim Graham
parent fa02120d36
commit 9d6551204e
32 changed files with 161 additions and 308 deletions

View File

@@ -260,9 +260,7 @@ list::
:func:`~django.views.decorators.csrf.csrf_protect` on the function that
actually processes the request. Note that this means that the handlers may
start receiving the file upload before the CSRF checks have been done.
Example code:
.. code-block:: python
Example code::
from django.views.decorators.csrf import csrf_exempt, csrf_protect

View File

@@ -15,9 +15,7 @@ application directory.
A simple view
=============
Here's a view that returns the current date and time, as an HTML document:
.. code-block:: python
Here's a view that returns the current date and time, as an HTML document::
from django.http import HttpResponse
import datetime