Module Expr Str TryExcept body ImportFrom alias alias alias handlers ExceptHandler type NameLoad body ImportFrom alias alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareIsNot NameLoad NameLoad body Raise Call NameLoad Str Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults vararg kwarg body FunctionDef arguments args defaults vararg kwarg body Return Call NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Pass decorator_list NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list Expr Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad GeneratorExp NameLoad comprehension NameStore NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg kwarg body Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults vararg kwarg body If Call NameLoad NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Return NameLoad If Call NameLoad NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Return NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body If Call NameLoad NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Return NameLoad Raise If BoolOpAnd Call NameLoad NameLoad Str Call NameLoad AttributeLoad NameLoad attr body If Call NameLoad NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If Call NameLoad NameLoad Str body Assign NameStore Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad Str body Return Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list Return Call Call NameLoad NameLoad keyword Call NameLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list Return NameLoad decorator_list
N/A N/A Functions that help with dynamically creating decorators for views. N/A N/A functools wraps update_wrapper WRAPPER_ASSIGNMENTS N/A N/A N/A ImportError N/A django.utils.functional wraps update_wrapper WRAPPER_ASSIGNMENTS classonlymethod N/A classmethod N/A __get__ N/A N/A self instance owner N/A N/A N/A N/A instance None N/A N/A N/A AttributeError This method is available only on the view class. N/A N/A N/A N/A super classonlymethod self __get__ instance owner N/A N/A method_decorator N/A N/A decorator N/A N/A N/A 
    Converts a function decorator into a method decorator
     _dec N/A N/A func N/A N/A _wrapper N/A N/A self N/A args kwargs N/A bound_func N/A N/A N/A args2 kwargs2 N/A N/A N/A func self args2 kwargs2 N/A decorator N/A N/A bound_func args kwargs N/A dummy N/A N/A N/A args kwargs N/A N/A N/A decorator N/A N/A update_wrapper _wrapper dummy N/A N/A update_wrapper _wrapper func N/A _wrapper N/A N/A N/A update_wrapper _dec decorator N/A N/A _dec __name__ N/A method_decorator(%s) N/A decorator __name__ N/A _dec N/A decorator_from_middleware_with_args N/A N/A middleware_class N/A N/A N/A 
    Like decorator_from_middleware, but returns a function
    that accepts the arguments to be passed to the middleware_class.
    Use like::

         cache_page = decorator_from_middleware_with_args(CacheMiddleware)
         # ...

         @cache_page(3600)
         def my_view(request):
             # ...
     N/A N/A make_middleware_decorator middleware_class N/A decorator_from_middleware N/A N/A middleware_class N/A N/A N/A 
    Given a middleware class (not an instance), returns a view decorator. This
    lets you use middleware functionality on a per-view basis. The middleware
    is created with no params passed.
     N/A N/A N/A make_middleware_decorator middleware_class N/A available_attrs N/A N/A fn N/A N/A N/A 
    Return the list of functools-wrappable attributes on a callable.
    This is required as a workaround for http://bugs.python.org/issue3445.
     N/A N/A tuple N/A a N/A a WRAPPER_ASSIGNMENTS N/A hasattr fn a N/A make_middleware_decorator N/A N/A middleware_class N/A N/A _make_decorator N/A N/A N/A m_args m_kwargs N/A N/A middleware N/A middleware_class m_args m_kwargs _decorator N/A N/A view_func N/A N/A _wrapped_view N/A N/A request N/A args kwargs N/A N/A N/A hasattr middleware process_request N/A N/A result N/A N/A middleware process_request request N/A N/A result None N/A N/A result N/A N/A hasattr middleware process_view N/A N/A result N/A N/A middleware process_view request view_func args kwargs N/A N/A result None N/A N/A result N/A N/A N/A response N/A view_func request args kwargs N/A N/A N/A Exception N/A e N/A N/A N/A hasattr middleware process_exception N/A N/A result N/A N/A middleware process_exception request e N/A N/A result None N/A N/A result N/A N/A N/A N/A hasattr response render N/A callable N/A response render N/A N/A N/A hasattr middleware process_template_response N/A N/A response N/A N/A middleware process_template_response request response N/A N/A hasattr middleware process_response N/A N/A callback N/A N/A N/A response N/A N/A N/A middleware process_response request response N/A N/A N/A response add_post_render_callback callback N/A N/A N/A hasattr middleware process_response N/A N/A N/A N/A middleware process_response request response N/A response N/A N/A N/A N/A wraps view_func assigned N/A available_attrs view_func _wrapped_view N/A N/A _decorator N/A N/A _make_decorator N/A