Removed deprecated contrib.csrf app.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15971 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
48edaf17a3
commit
fe12415231
|
@ -1,7 +0,0 @@
|
||||||
from django.middleware.csrf import CsrfMiddleware, CsrfViewMiddleware, CsrfResponseMiddleware
|
|
||||||
from django.views.decorators.csrf import csrf_exempt, csrf_view_exempt, csrf_response_exempt
|
|
||||||
|
|
||||||
import warnings
|
|
||||||
warnings.warn("This import for CSRF functionality is deprecated. Please use django.middleware.csrf for the middleware and django.views.decorators.csrf for decorators.",
|
|
||||||
DeprecationWarning
|
|
||||||
)
|
|
Loading…
Reference in New Issue