Module Import alias Import alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body If CompareIs Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpMod Str NameLoad If Call NameLoad NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Return Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list Return NameLoad decorator_list
N/A N/A os N/A traceback django.utils.safestring SafeString django.utils.decorators method_decorator cached N/A N/A function N/A N/A N/A 
    Save the result of this <function> in object.<function>_cache attribute
     _get_from_objects_cache N/A N/A object N/A args kwargs N/A N/A N/A N/A type function property N/A N/A N/A Exception N/A %s is a property of %s N/A function object N/A N/A function_name N/A function __name__ N/A cache_key N/A %s_cache function_name N/A N/A getattr object cache_key False N/A N/A result N/A getattr object cache_key N/A N/A result N/A function object N/A N/A setattr object cache_key result N/A result N/A N/A _get_from_objects_cache N/A class_decorator N/A N/A decorator N/A N/A N/A 
    usage:
    in views.py

        from django.views.decorators.cache import cache_control
        from django.views.generic import View
        @class_decorator(cache_control(max_age=60))
        class MyView(View):
            filename = 'templatefile'
            def content(self, request):
                ...
     inner N/A N/A cls N/A N/A N/A orig_dispatch N/A cls dispatch new_dispatch N/A N/A self request N/A args kwargs N/A N/A N/A orig_dispatch self request args kwargs N/A N/A method_decorator decorator N/A N/A cls dispatch new_dispatch N/A cls N/A N/A inner N/A