module documentation

Undocumented

Function csrf​_exempt Mark a view function as being exempt from the CSRF view protection.
Variable csrf​_protect This decorator adds CSRF protection in exactly the same way as CsrfViewMiddleware, but it can be used on a per view basis. Using both, or using the decorator multiple times, is harmless and efficient.
Variable ensure​_csrf​_cookie Use this decorator to ensure that a view sets a CSRF cookie, whether or not it uses the csrf_token template tag, or the CsrfViewMiddleware is used.
Variable requires​_csrf​_token Use this decorator on views that need a correct csrf_token available to RequestContext, but without the CSRF protection that csrf_protect enforces.
Class _​Ensure​Csrf​Cookie Undocumented
Class _​Ensure​Csrf​Token Undocumented
def csrf_exempt(view_func):
Mark a view function as being exempt from the CSRF view protection.
csrf_protect =
This decorator adds CSRF protection in exactly the same way as CsrfViewMiddleware, but it can be used on a per view basis. Using both, or using the decorator multiple times, is harmless and efficient.
ensure_csrf_cookie =
Use this decorator to ensure that a view sets a CSRF cookie, whether or not it uses the csrf_token template tag, or the CsrfViewMiddleware is used.
requires_csrf_token =
Use this decorator on views that need a correct csrf_token available to RequestContext, but without the CSRF protection that csrf_protect enforces.