Module Expr Str ImportFrom alias ImportFrom alias Import alias Import alias Import alias Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore TupleLoad Str Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return NameLoad Assign NameStore Call NameLoad NameLoad TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str handlers ExceptHandler type NameLoad body Return Call NameLoad NameLoad If CompareNotEq NameLoad NameLoad body Return Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore NameLoad TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIn SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Index Num NameLoad body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Return BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Str NameLoad Str decorator_list Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list
N/A N/A 
Cross Site Request Forgery Middleware.

This module provides a middleware that implements protection
against request forgeries from other sites. 

 django.conf settings django.http HttpResponseForbidden N/A md5 N/A re N/A itertools N/A _ERROR_MSG <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><body><h1>403 Forbidden</h1><p>Cross Site Request Forgery detected. Request aborted.</p></body></html> N/A _POST_FORM_RE N/A N/A re compile (<form\W[^>]*\bmethod=(\'|"|)POST(\'|"|)\b[^>]*>) N/A re IGNORECASE N/A _HTML_TYPES N/A text/html application/xhtml+xml _make_token N/A N/A session_id N/A N/A N/A N/A N/A N/A N/A md5 new N/A N/A settings SECRET_KEY session_id hexdigest N/A CsrfMiddleware N/A object N/A N/A Django middleware that adds protection against Cross Site
    Request Forgeries by adding hidden form fields to POST forms and 
    checking requests for the correct value.  
    
    In the list of middlewares, SessionMiddleware is required, and must come 
    after this middleware.  CsrfMiddleWare must come after compression 
    middleware.
   
    If a session ID cookie is present, it is hashed with the SECRET_KEY 
    setting to create an authentication token.  This token is added to all 
    outgoing POST forms and is expected on all incoming POST requests that 
    have a session ID cookie.
    
    If you are setting cookies directly, instead of using Django's session 
    framework, this middleware will not work.
     process_request N/A N/A self request N/A N/A N/A N/A request POST N/A N/A N/A N/A session_id N/A N/A request COOKIES N/A N/A settings SESSION_COOKIE_NAME N/A N/A N/A KeyError N/A N/A None N/A csrf_token N/A _make_token session_id N/A N/A N/A request_csrf_token N/A N/A request POST N/A csrfmiddlewaretoken N/A N/A N/A KeyError N/A N/A N/A HttpResponseForbidden _ERROR_MSG N/A N/A request_csrf_token csrf_token N/A N/A N/A HttpResponseForbidden _ERROR_MSG N/A None N/A process_response N/A N/A self request response N/A N/A N/A csrf_token None N/A N/A N/A cookie N/A N/A response cookies N/A N/A settings SESSION_COOKIE_NAME N/A csrf_token N/A _make_token N/A cookie value N/A N/A N/A KeyError N/A N/A N/A N/A session_id N/A N/A request COOKIES N/A N/A settings SESSION_COOKIE_NAME N/A csrf_token N/A _make_token session_id N/A N/A N/A KeyError N/A N/A N/A N/A N/A csrf_token None N/A N/A N/A N/A N/A response N/A Content-Type split ; N/A 0 _HTML_TYPES N/A N/A idattributes N/A N/A itertools chain N/A id='csrfmiddlewaretoken' N/A N/A itertools repeat add_csrf_field N/A N/A match N/A N/A N/A Returns the matched <form> tag plus the added <input> element N/A N/A N/A N/A N/A N/A N/A N/A N/A match group <div style='display:none;'> <input type='hidden'  N/A N/A idattributes next  name='csrfmiddlewaretoken' value=' csrf_token ' /></div> N/A N/A N/A response content N/A N/A _POST_FORM_RE sub add_csrf_field N/A response content N/A response N/A N/A