Module Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Assign NameStore BinOpAdd AttributeLoad NameLoad attr TupleLoad Call NameLoad Str Str keyword Str Call NameLoad Str Str keyword Str keyword Str Call NameLoad Str Str keyword Str keyword Str Call NameLoad Str keyword Str keyword Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore IfExp NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Print Call AttributeLoad NameLoad attr NameLoad keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If BoolOpAnd NameLoad NameLoad body Raise Call NameLoad Str TryExcept body Assign NameStore ListLoad SubscriptLoad AttributeLoad NameLoad attr Index Num handlers ExceptHandler type NameLoad body Assign NameStore NameLoad If NameLoad body Assign NameStore ListLoad Call NameLoad orelse If NameLoad body Assign NameStore ListLoad Call NameLoad orelse If UnaryOpNot NameLoad body Assign NameStore ListLoad Call NameLoad Call NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num handlers ExceptHandler type NameLoad body Raise Call NameLoad Str TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num handlers ExceptHandler type NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list decorator_list
N/A N/A importlib N/A logging cStringIO StringIO django.core.management.commands sqlall syncdb django.db models optparse make_option django.core.management.base BaseCommand CommandError django.db DEFAULT_DB_ALIAS N/A logger N/A N/A logging getLogger __file__ Command N/A BaseCommand N/A N/A option_list N/A N/A BaseCommand option_list N/A N/A make_option -d --database dest database N/A make_option -c --current-only dest current_only action store_true N/A make_option -n --next-only dest next_only action store_true N/A make_option --sqlall dest sqlall action store_true handle N/A N/A self N/A args options N/A N/A N/A self args args N/A N/A self options options N/A model N/A N/A self get_model N/A database N/A N/A N/A self options get database N/A database N/A database database DEFAULT_DB_ALIAS N/A only_sqlall N/A N/A N/A self options get sqlall N/A partition_name N/A N/A self get_partition_names model N/A N/A N/A N/A N/A model _partition_manager get_partition partition_name N/A only_sqlall N/A N/A sqlall_command N/A N/A sqlall Command N/A N/A N/A self _setup_command sqlall_command N/A app N/A N/A models get_app N/A N/A model _meta app_label N/A N/A N/A sqlall_command handle_app app database database N/A N/A syncdb_command N/A N/A syncdb Command N/A N/A N/A self _setup_command syncdb_command N/A N/A N/A syncdb_command handle_noargs database database interactive False load_initial_data False show_traceback True verbosity 0 N/A get_partition_names N/A N/A self model N/A N/A N/A current N/A N/A model _partition_manager current_partition_key N/A next N/A N/A model _partition_manager next_partition_key N/A current_only N/A N/A N/A self options get current_only N/A next_only N/A N/A N/A self options get next_only N/A N/A current_only next_only N/A N/A N/A CommandError You cannot specify current_only and next_only togethers N/A N/A N/A partition_names N/A N/A N/A self args N/A 1 N/A N/A N/A IndexError N/A N/A partition_names None N/A current_only N/A N/A partition_names N/A N/A current N/A N/A next_only N/A N/A partition_names N/A N/A next N/A N/A N/A partition_names N/A N/A partition_names N/A N/A current N/A next N/A partition_names N/A get_model N/A N/A self N/A N/A N/A N/A N/A model N/A N/A self args N/A 0 N/A N/A N/A IndexError N/A N/A N/A CommandError Please supply at least one partitioned model N/A N/A N/A N/A module_name model_name N/A N/A model rsplit . 1 N/A N/A N/A ValueError N/A N/A N/A CommandError N/A N/A Bad model name {} format model N/A module N/A N/A importlib import_module module_name N/A N/A N/A m N/A getattr module model_name N/A N/A N/A AttributeError N/A N/A N/A CommandError N/A N/A Unknown model {} format model N/A m N/A _setup_command N/A N/A self c N/A N/A N/A N/A c stdout N/A StringIO N/A N/A