mirror of
https://github.com/django/django.git
synced 2025-07-24 21:54:14 +00:00
Add missing imports and models to the examples in security documentation
This commit is contained in:
parent
7264e5c661
commit
6a479955f0
1 changed files with 1 additions and 0 deletions
|
@ -384,6 +384,7 @@ Utilities
|
||||||
the middleware. Example::
|
the middleware. Example::
|
||||||
|
|
||||||
from django.views.decorators.csrf import csrf_exempt
|
from django.views.decorators.csrf import csrf_exempt
|
||||||
|
from django.http import HttpResponse
|
||||||
|
|
||||||
@csrf_exempt
|
@csrf_exempt
|
||||||
def my_view(request):
|
def my_view(request):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue