PageRenderTime 82ms CodeModel.GetById 40ms app.highlight 1ms RepoModel.GetById 40ms app.codeStats 0ms

/django/contrib/csrf/middleware.py

https://code.google.com/p/mango-py/
Python | 7 lines | 6 code | 1 blank | 0 comment | 0 complexity | 51a0e5aff10fe3cd91bdff478c004aaa MD5 | raw file
1from django.middleware.csrf import CsrfMiddleware, CsrfViewMiddleware, CsrfResponseMiddleware
2from django.views.decorators.csrf import csrf_exempt, csrf_view_exempt, csrf_response_exempt
3
4import warnings
5warnings.warn("This import for CSRF functionality is deprecated.  Please use django.middleware.csrf for the middleware and django.views.decorators.csrf for decorators.",
6              DeprecationWarning
7              )