Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr ListLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore Call NameLoad NameLoad Str Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr If Call AttributeLoad NameLoad attr Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Str If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A 
Use docopt to specify the options of a Django command.

class MyCommand(DocOptCommand):
    docs = "Usage: my_command abc def"

    def handle_docopt(self, arguments):
        pass
 N/A os N/A sys N/A traceback docopt docopt django.core.management BaseCommand django.core.management.base OutputWrapper DocOptCommand N/A BaseCommand N/A N/A docs handle_docopt N/A N/A self arguments N/A N/A N/A N/A print_help N/A N/A self prog_name subcommand N/A N/A N/A N/A N/A N/A sys stdout write N/A self docs N/A run_from_argv N/A N/A self argv N/A N/A N/A arguments N/A docopt N/A self docs N/A argv N/A 2 N/A N/A N/A self _handle_default_options arguments N/A N/A N/A N/A N/A self execute N/A arguments N/A N/A N/A Exception N/A e N/A N/A stderr N/A getattr self stderr N/A OutputWrapper N/A sys stderr N/A N/A self style ERROR N/A N/A N/A arguments get --traceback False N/A N/A N/A N/A stderr write N/A N/A traceback format_exc N/A N/A N/A N/A stderr write N/A %s: %s N/A N/A N/A e __class__ __name__ e N/A N/A N/A sys exit 1 N/A _handle_default_options N/A N/A self arguments N/A N/A N/A N/A N/A arguments get settings N/A N/A N/A N/A os environ N/A DJANGO_SETTINGS_MODULE N/A arguments N/A settings N/A N/A N/A arguments get pythonpath N/A N/A N/A N/A N/A sys path insert 0 N/A arguments N/A pythonpath N/A handle N/A N/A self N/A args options N/A N/A N/A N/A self handle_docopt options N/A N/A