mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Add missing imports and models to the examples in security documentation
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user