mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Removed unnecessary code-block directives.
This commit is contained in:
parent
fa02120d36
commit
9d6551204e
32 changed files with 161 additions and 308 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue