Module Expr Str ImportFrom alias alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias TryExcept body Expr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Return Call AttributeLoad NameLoad attr Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad Break If CompareIs NameLoad NameLoad body Return TupleLoad NameLoad NameLoad ListLoad Return TupleLoad SubscriptLoad NameLoad Slice NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num decorator_list FunctionDef arguments args defaults body Global identifier Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Global identifier Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body Assign NameStore BinOpAdd NameLoad Str If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body If NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad Raise Call NameLoad BinOpMod Str TupleLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad FunctionDef arguments args NameParam defaults body If CompareIs NameLoad NameLoad body Return TryExcept body Expr Call NameLoad Dict Str Str Str NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Import alias Import alias Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Assign NameStore NameLoad ImportFrom alias Expr Call NameLoad NameLoad Str If NameLoad body Expr Call NameLoad Dict Str Str Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults kwarg body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num Assign TupleStore NameStore NameStore NameStore Call NameLoad SubscriptLoad NameLoad Slice Num If UnaryOpNot NameLoad body Expr Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad If CompareEq NameLoad Str body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BoolOpOr Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore NameLoad While CompareNotIn NameLoad TupleLoad Str Str body Assign NameStore Call NameLoad BinOpMod Str NameLoad If CompareEq NameLoad Str body Expr Call NameLoad Str Return TryExcept body Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call NameLoad BinOpMod Str NameLoad Return Expr Call AttributeLoad NameLoad attr Str keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd ListLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
logan.runner
~~~~~~~~~~~~

:copyright: (c) 2012 David Cramer.
:license: Apache License 2.0, see LICENSE for more details.
 __future__ absolute_import print_function django.core management optparse OptionParser N/A os N/A re N/A sys logan importer logan.settings create_default_settings N/A N/A N/A raw_input N/A N/A N/A NameError N/A N/A raw_input input N/A __configured False sanitize_name N/A N/A project N/A N/A N/A project N/A N/A project replace - N/A N/A N/A re sub [^A-Z0-9a-z_-] - project N/A parse_args N/A N/A args N/A N/A N/A 
    This parses the arguments and returns a tuple containing:

    (args, command, command_args)

    For example, "--config=bar start --with=baz" would return:

    (['--config=bar'], 'start', ['--with=baz'])
     N/A index None N/A N/A arg_i arg N/A enumerate args N/A N/A N/A N/A N/A arg startswith - N/A N/A index arg_i N/A N/A N/A index None N/A N/A N/A args None N/A N/A N/A N/A args N/A index N/A args N/A index N/A args N/A N/A index 1 N/A is_configured N/A N/A N/A N/A N/A __configured N/A __configured N/A configure_app N/A N/A config_path project default_config_path default_settings settings_initializer settings_envvar initializer allow_extras config_module_name runner_name on_configure N/A None None None None None None None True None None None N/A N/A 
    :param project: should represent the canonical name for the project, generally
        the same name it assigned in distutils.
    :param default_config_path: the default location for the configuration file.
    :param default_settings: default settings to load (think inheritence).
    :param settings_initializer: a callback function which should return a string
        representing the default settings template to generate.
    :param initializer: a callback function which will be executed before the command
        is executed. It is passed a dictionary of various configuration attributes.
     N/A __configured N/A project_filename N/A sanitize_name project N/A N/A default_config_path None N/A N/A default_config_path N/A ~/%s/%s.conf.py N/A project_filename project_filename N/A N/A settings_envvar None N/A N/A settings_envvar N/A N/A N/A project_filename upper _CONF N/A N/A config_module_name None N/A N/A config_module_name N/A project_filename _config N/A N/A settings_envvar N/A os environ N/A N/A default_config_path N/A N/A N/A os environ get settings_envvar N/A N/A default_config_path N/A N/A N/A os path normpath N/A N/A N/A os path abspath N/A N/A N/A os path expanduser default_config_path N/A N/A config_path N/A N/A config_path default_config_path N/A config_path N/A N/A N/A os path expanduser config_path N/A N/A N/A N/A N/A os path exists config_path N/A N/A runner_name N/A N/A N/A ValueError N/A Configuration file does not exist. Use '%s init' to initialize the file. N/A runner_name N/A N/A ValueError N/A Configuration file does not exist at %r N/A config_path N/A N/A N/A os environ N/A DJANGO_SETTINGS_MODULE config_module_name settings_callback N/A N/A settings N/A N/A N/A N/A initializer None N/A N/A N/A N/A N/A N/A initializer N/A project config_path settings project config_path settings N/A N/A N/A Exception N/A N/A sys N/A traceback N/A N/A N/A traceback print_exc N/A N/A N/A sys exit 1 N/A N/A N/A N/A importer install config_module_name config_path default_settings allow_extras allow_extras callback settings_callback N/A __configured True django.conf settings N/A N/A hasattr settings INSTALLED_APPS N/A on_configure N/A N/A N/A on_configure N/A project config_path settings project config_path settings N/A run_app N/A N/A N/A kwargs N/A N/A sys_args N/A sys argv N/A runner_name N/A N/A N/A os path basename N/A sys_args N/A 0 N/A N/A args command command_args N/A parse_args N/A sys_args N/A 1 N/A N/A command N/A N/A N/A print N/A usage: %s [--config=/path/to/settings.py] [command] [options] runner_name N/A N/A N/A sys exit 1 N/A default_config_path N/A N/A kwargs get default_config_path N/A parser N/A OptionParser N/A N/A command init N/A N/A N/A options opt_args N/A N/A parser parse_args N/A settings_initializer N/A N/A kwargs get settings_initializer N/A config_path N/A N/A N/A os path expanduser N/A N/A N/A join N/A opt_args N/A 1 default_config_path N/A N/A N/A N/A os path exists config_path N/A N/A resp None N/A N/A resp N/A Y n N/A N/A resp N/A raw_input N/A File already exists at %r, overwrite? [nY]  config_path N/A N/A resp n N/A N/A N/A print Aborted! N/A N/A N/A N/A N/A create_default_settings config_path settings_initializer N/A N/A N/A OSError N/A e N/A N/A N/A N/A e __class__ N/A Unable to write default settings file to %r config_path N/A N/A print N/A Configuration file created at %r config_path N/A N/A N/A N/A parser add_option --config metavar CONFIG N/A N/A options logan_args N/A N/A parser parse_args args N/A config_path N/A options config N/A N/A configure_app config_path config_path kwargs N/A N/A N/A management execute_from_command_line N/A N/A runner_name command command_args N/A N/A N/A sys exit 0 N/A N/A N/A __name__ __main__ N/A N/A N/A run_app