Module Import alias Import alias Assign NameStore Str ClassDef bases NameLoad body Expr Str Assign NameStore Dict Str Str Str Str Str Str ListLoad Str Str NameLoad NameLoad Str Str TupleLoad Str Assign NameStore NameLoad Assign NameStore Dict FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If UnaryOpNot NameLoad body Raise NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call AttributeLoad NameLoad attr If SubscriptLoad AttributeLoad NameLoad attr Index Str body For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign SubscriptStore AttributeLoad NameLoad attr Index BinOpMod Str NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd Call AttributeLoad NameLoad attr Str CompareNotEq NameLoad Call AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpAdd Call NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad Str attr SubscriptLoad Call AttributeLoad NameLoad attr Str Slice Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr Str If CompareIn Str AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareIn Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareIn Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call NameLoad BinOpAdd Call AttributeLoad Call NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Return Expr Call NameLoad NameLoad NameLoad Assign NameStore BinOpSub Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad Call NameLoad attr For NameStore NameLoad body If CompareEq NameLoad Call AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad Str attr ListLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareNotIn Str AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str If CompareNotIn Str AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str For NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str body If BoolOpAnd Call AttributeLoad NameLoad attr NameLoad CompareNotIn Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd Call AttributeLoad NameLoad attr NameLoad CompareNotIn Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Call AttributeLoad NameLoad attr NameLoad If BoolOpOr CompareNotIn Str AttributeLoad NameLoad attr UnaryOpNot SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If Call AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr NameLoad orelse If Call AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr NameLoad If BoolOpOr CompareNotIn Str AttributeLoad NameLoad attr UnaryOpNot SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If Call AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr NameLoad orelse If Call AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr NameLoad For NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str body If CompareNotIn Call AttributeLoad NameLoad attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str body AugAssignAdd SubscriptStore AttributeLoad NameLoad attr Index Str TupleLoad Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad
N/A N/A os N/A sys N/A ENVIRONMENT_VARIABLE FLEXI_WRAPPED_MODULE FlexiSettingsProxy N/A object N/A N/A Wrap configuration files following the app naming convention.

    For this app to work, the environment vairable
    'FLEXI_WRAPPED_MODULE' has to be set and point to django's settings.
     N/A _globals N/A FLEXI_SYS_PATH FLEXI_AUTORELOAD FLEXI_LAYOUT_DISCOVERY FLEXI_MEDIA_FOLDER FLEXI_STATIC_FOLDER FLEXI_TEMPLATE_FOLDERS N/A apps lib True False media static N/A templates N/A _settings_path None N/A _wrapped_modules N/A __init__ N/A N/A self N/A N/A N/A N/A N/A settings_module N/A N/A os environ N/A ENVIRONMENT_VARIABLE N/A N/A settings_module N/A N/A KeyError N/A N/A N/A KeyError N/A N/A N/A ImportError N/A Flexisettings cannot be imported, because environment variable %s is undefined. ENVIRONMENT_VARIABLE N/A N/A self _settings_module settings_module N/A N/A self _settings_path N/A N/A self _get_mod_dir settings_module N/A N/A N/A self _import_settings N/A N/A N/A self _globals N/A FLEXI_LAYOUT_DISCOVERY N/A N/A N/A N/A self _layout_discovery N/A N/A N/A self _globals N/A FLEXI_AUTORELOAD N/A N/A N/A module modfile N/A N/A N/A self _wrapped_modules iteritems N/A N/A N/A N/A sys modules N/A N/A flexisettings.wrapped.%s module N/A MockModule module modfile N/A __getattr__ N/A N/A self name N/A N/A N/A N/A N/A self __getattribute__ name N/A __getattribute__ N/A N/A self name N/A N/A N/A N/A N/A N/A name startswith _ N/A name N/A N/A name upper N/A N/A N/A N/A object __getattribute__ self name N/A N/A name N/A self _globals N/A N/A N/A N/A self _globals N/A name N/A N/A N/A object __getattribute__ self name N/A __dir__ N/A N/A self N/A N/A N/A N/A N/A dir object N/A N/A N/A self _globals keys N/A _get_package N/A N/A self module N/A N/A N/A return a package string extracted from a module import string.
        This should work because the settings module should be on the
        python import path, this is not using the django mechanism of
        :code:`app.module`.
        See https://docs.djangoproject.com/en/1.5/topics/settings/#envvar-DJANGO_SETTINGS_MODULE

        :param module: a module string as used in import command
        :type module: str
         N/A N/A N/A . join N/A N/A N/A module split . N/A -1 N/A _get_mod_dir N/A N/A self module N/A N/A N/A return the module folder

        :param module: a module string as used in import command
        :type module: str
         N/A package N/A N/A self _get_package module N/A mod N/A __import__ package N/A modfile N/A mod __file__ N/A N/A N/A N/A modfile startswith / N/A N/A modfile N/A N/A N/A os path abspath modfile N/A N/A N/A N/A os path dirname modfile N/A _import_settings N/A N/A self quiet N/A True N/A N/A Get the settings imported in the proper order and depending
        on FLEXI_RUN_ENV variable.

        :param quiet: quietly fail if settings file does not exist
        :type quiet: bool
         N/A N/A N/A self _import env N/A N/A FLEXI_RUN_ENV N/A os environ N/A N/A N/A N/A self _globals N/A FLEXI_RUN_ENV N/A N/A os environ N/A FLEXI_RUN_ENV N/A N/A N/A self _import security quiet N/A N/A FLEXI_RUN_ENV N/A self _globals N/A N/A N/A N/A self _import N/A security_%s N/A N/A self _globals N/A FLEXI_RUN_ENV quiet N/A N/A N/A self _import settings False N/A N/A FLEXI_RUN_ENV N/A self _globals N/A N/A N/A N/A self _import N/A settings_%s N/A N/A self _globals N/A FLEXI_RUN_ENV quiet N/A _import N/A N/A self modname quiet N/A True N/A N/A import settings module and push configuration values to global scope

        The import order is as follow:
            * env.py
            * security.py
            * security_<FLEXI_RUN_ENV>.py, if FLEXI_RUN_ENV is set
            * settings.py, raises an IOError exception if missing
            * settings_<FLEXI_RUN_ENV>.py, if FLEXI_RUN_ENV is set

        :param modname: settings module name without package path, only
        the last part of a dotted name
        :type modname: str
        :param quiet: quietly fail if settings file does not exist
        :type quiet: bool
         N/A modfile N/A N/A N/A N/A os path join N/A self _settings_path modname .py N/A globals_dict N/A dict N/A N/A N/A N/A globals items N/A N/A N/A self _globals items N/A N/A N/A N/A N/A N/A os path isfile modfile quiet N/A N/A N/A N/A execfile modfile globals_dict N/A settings N/A N/A set N/A N/A globals_dict keys N/A set N/A N/A N/A globals keys N/A setting settings N/A N/A N/A setting N/A N/A setting upper N/A N/A N/A N/A self _globals N/A setting N/A globals_dict N/A setting N/A module N/A N/A . join N/A N/A N/A self _get_package N/A self _settings_module modname N/A N/A N/A self _wrapped_modules N/A module modfile N/A _site_dir N/A N/A self folder N/A N/A N/A return an absolute path for a folder inside FLEXI_SITE_ROOT.

        :param folder: a folder name
        :type folder: str
         N/A N/A N/A N/A os path join N/A N/A self _globals N/A FLEXI_SITE_ROOT folder N/A _is_site_dir N/A N/A self folder N/A N/A N/A returns a True if folder exists inside FLEXI_SITE_ROOT
        folder.

        :param folder: a folder name
        :type folder: str
         N/A N/A N/A N/A os path isdir N/A N/A self _site_dir folder N/A _project_dir N/A N/A self folder N/A N/A N/A return an absolute path for a folder inside
        FLEXI_PROJECT_ROOT.

        :param folder: a folder name
        :type folder: str
         N/A N/A N/A N/A os path join N/A N/A self _globals N/A FLEXI_PROJECT_ROOT folder N/A _is_project_dir N/A N/A self folder N/A N/A N/A returns a True if folder exists inside FLEXI_PROJECT_ROOT
        folder.

        :param folder: a folder name
        :type folder: str
         N/A N/A N/A N/A os path isdir N/A N/A self _project_dir folder N/A _layout_discovery N/A N/A self N/A N/A N/A perform layout detection:
            * set FLEXI_PROJECT_ROOT
            * set FLEXI_SITE_ROOT
            * add folders from FLEXI_SYS_PATH to sys.path
            * set MEDIA_ROOT
            * set STATIC_ROOT
            * add template folders to TEMPLATE_DIRS
         N/A N/A FLEXI_PROJECT_ROOT N/A self _globals N/A N/A N/A N/A self _globals N/A FLEXI_PROJECT_ROOT N/A N/A N/A os path dirname N/A self _settings_path N/A N/A self _project_path N/A N/A self _globals N/A FLEXI_PROJECT_ROOT N/A N/A FLEXI_SITE_ROOT N/A self _globals N/A N/A N/A N/A self _globals N/A FLEXI_SITE_ROOT N/A self _project_path N/A N/A self _site_path N/A N/A self _globals N/A FLEXI_SITE_ROOT N/A folder N/A N/A self _globals N/A FLEXI_SYS_PATH N/A N/A N/A N/A N/A self _is_project_dir folder N/A N/A N/A self _project_dir folder N/A sys path N/A N/A N/A N/A N/A sys path insert 0 N/A N/A self _project_dir folder N/A N/A N/A N/A N/A self _is_site_dir folder N/A N/A N/A self _site_dir folder N/A sys path N/A N/A N/A N/A N/A sys path insert 0 N/A N/A self _site_dir folder N/A N/A N/A MEDIA_ROOT N/A self _globals N/A N/A N/A self _globals N/A MEDIA_ROOT N/A N/A folder N/A N/A self _globals N/A FLEXI_MEDIA_FOLDER N/A N/A N/A self _is_site_dir folder N/A N/A N/A N/A self _globals N/A MEDIA_ROOT N/A N/A self _site_dir folder N/A N/A N/A N/A self _is_project_dir folder N/A N/A N/A N/A self _globals N/A MEDIA_ROOT N/A N/A self _project_dir folder N/A N/A N/A STATIC_ROOT N/A self _globals N/A N/A N/A self _globals N/A STATIC_ROOT N/A N/A folder N/A N/A self _globals N/A FLEXI_STATIC_FOLDER N/A N/A N/A self _is_site_dir folder N/A N/A N/A N/A self _globals N/A STATIC_ROOT N/A N/A self _site_dir folder N/A N/A N/A N/A self _is_project_dir folder N/A N/A N/A N/A self _globals N/A STATIC_ROOT N/A N/A self _project_dir folder N/A folder N/A N/A self _globals N/A FLEXI_TEMPLATE_FOLDERS N/A N/A N/A N/A N/A self _is_project_dir folder N/A N/A self _globals N/A TEMPLATE_DIRS N/A N/A N/A N/A self _globals N/A TEMPLATE_DIRS N/A N/A N/A self _project_dir folder N/A N/A MockModule N/A object N/A N/A An object mocking a module to use in sys.modules for django
    autoreload trickery.
     __init__ N/A N/A self name filename N/A N/A N/A N/A self __name__ name N/A N/A self __file__ filename N/A N/A N/A N/A N/A sys modules N/A __name__ N/A FlexiSettingsProxy