Module Expr Str TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults vararg kwarg body If CompareNotIn AttributeLoad NameLoad attr NameLoad body Return Call NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list Return Call Call NameLoad NameLoad keyword Call NameLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Str Assign NameStore Call NameLoad ListLoad Str Assign AttributeStore NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If BoolOpOr NameLoad NameLoad body TryExcept body Assign NameStore Call NameLoad BoolOpOr NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad orelse Assign NameStore NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If NameLoad body Assign NameStore BinOpAdd SubscriptLoad Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Slice Num Str orelse Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore NameLoad If UnaryOpNot BoolOpOr BoolOpAnd NameLoad BoolOpOr NameLoad NameLoad BoolOpAnd NameLoad NameLoad body If BoolOpAnd BoolOpAnd NameLoad BoolOpOr CompareIn NameLoad NameLoad BoolOpAnd CompareIn Str NameLoad NameLoad BoolOpOr UnaryOpNot NameLoad CompareEq NameLoad NameLoad body If CompareIn AttributeLoad NameLoad attr TupleLoad Str Str body Assign NameStore Call NameLoad orelse Assign NameStore Call NameLoad keyword Num orelse If BoolOpAnd NameLoad BoolOpOr BoolOpAnd UnaryOpNot NameLoad CompareIn Str NameLoad BoolOpAnd NameLoad CompareNotIn NameLoad NameLoad body Assign NameStore Call NameLoad keyword Num orelse If BoolOpAnd UnaryOpNot NameLoad NameLoad CompareEq AttributeLoad NameLoad attr Str CompareEq NameLoad NameLoad body Assign NameStore Call NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str NameLoad If BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Return NameLoad decorator_list Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad keyword NameLoad decorator_list
N/A N/A 
Decorators for views based on HTTP headers.
 N/A N/A functools wraps N/A N/A N/A ImportError N/A django.utils.functional wraps calendar timegm datetime timedelta email.Utils formatdate django.utils.decorators decorator_from_middleware available_attrs django.utils.http parse_etags quote_etag django.middleware.http ConditionalGetMiddleware django.http HttpResponseNotAllowed HttpResponseNotModified HttpResponse N/A conditional_page N/A decorator_from_middleware ConditionalGetMiddleware require_http_methods N/A N/A request_method_list N/A N/A N/A 
    Decorator to make a view only accept particular request methods.  Usage::

        @require_http_methods(["GET", "POST"])
        def my_view(request):
            # I can assume now that only GET or POST requests make it this far
            # ...

    Note that request methods should be in uppercase.
     decorator N/A N/A func N/A N/A inner N/A N/A request N/A args kwargs N/A N/A N/A N/A request method request_method_list N/A N/A N/A HttpResponseNotAllowed request_method_list N/A N/A func request args kwargs N/A N/A N/A N/A wraps func assigned N/A available_attrs func inner N/A N/A decorator N/A N/A require_GET N/A require_http_methods N/A GET N/A N/A require_GET __doc__ Decorator to require that a view only accept the GET method. N/A require_POST N/A require_http_methods N/A POST N/A N/A require_POST __doc__ Decorator to require that a view only accept the POST method. condition N/A N/A etag_func last_modified_func N/A None None N/A N/A 
    Decorator to support conditional retrieval (or change) for a view
    function.

    The parameters are callables to compute the ETag and last modified time for
    the requested resource, respectively. The callables are passed the same
    parameters as the view itself. The Etag function should return a string (or
    None if the resource doesn't exist), whilst the last_modified function
    should return a datetime object (or None if the resource doesn't exist).

    If both parameters are provided, all the preconditions must be met before
    the view is processed.

    This decorator will either pass control to the wrapped view function or
    return an HTTP 304 response (unmodified) or 412 response (preconditions
    failed), depending upon the request method.

    Any behavior marked as "undefined" in the HTTP spec (e.g. If-none-match
    plus If-modified-since headers) will result in the view function being
    called.
     decorator N/A N/A func N/A N/A inner N/A N/A request N/A args kwargs N/A N/A if_modified_since N/A N/A N/A request META get HTTP_IF_MODIFIED_SINCE N/A if_none_match N/A N/A N/A request META get HTTP_IF_NONE_MATCH N/A if_match N/A N/A N/A request META get HTTP_IF_MATCH N/A N/A if_none_match if_match N/A N/A N/A N/A etags N/A parse_etags N/A if_none_match if_match N/A N/A N/A ValueError N/A N/A if_none_match None N/A if_match None N/A etag_func N/A N/A res_etag N/A etag_func request args kwargs N/A N/A res_etag None N/A last_modified_func N/A N/A dt N/A last_modified_func request args kwargs N/A dt N/A N/A res_last_modified N/A N/A N/A formatdate N/A timegm N/A N/A dt utctimetuple N/A 26 GMT N/A N/A res_last_modified None N/A N/A res_last_modified None N/A response None N/A N/A N/A N/A if_match N/A if_modified_since if_none_match N/A if_match if_none_match N/A N/A N/A N/A if_none_match N/A N/A res_etag etags N/A N/A * etags res_etag N/A N/A if_modified_since N/A res_last_modified if_modified_since N/A N/A N/A N/A request method N/A GET HEAD N/A N/A response N/A HttpResponseNotModified N/A N/A response N/A HttpResponse status 412 N/A N/A N/A if_match N/A N/A N/A res_etag N/A * etags N/A res_etag N/A res_etag etags N/A N/A response N/A HttpResponse status 412 N/A N/A N/A N/A if_none_match if_modified_since N/A N/A request method GET N/A res_last_modified if_modified_since N/A N/A response N/A HttpResponseNotModified N/A N/A response None N/A N/A response N/A func request args kwargs N/A N/A res_last_modified N/A N/A N/A response has_header Last-Modified N/A N/A N/A response N/A Last-Modified res_last_modified N/A N/A res_etag N/A N/A N/A response has_header ETag N/A N/A N/A response N/A ETag N/A quote_etag res_etag N/A response N/A N/A inner N/A N/A decorator N/A etag N/A N/A etag_func N/A N/A N/A N/A condition etag_func etag_func N/A last_modified N/A N/A last_modified_func N/A N/A N/A N/A condition last_modified_func last_modified_func N/A