Beispiel #1
0
def setup_environment(settings_mod):
    """Prepare the runtime environment. Used by project 'admin.py' script.
    It will update the configuration settings and load the project.
    """
    from kalapy.conf import settings
    project_dir = os.path.dirname(os.path.abspath(settings_mod.__file__))
    settings.update(settings_mod, project_dir=project_dir)
Beispiel #2
0
def setup_environment(settings_mod):
    """Prepare the runtime environment. Used by project 'admin.py' script.
    It will update the configuration settings and load the project.
    """
    from kalapy.conf import settings
    settings.update(settings_mod)
Beispiel #3
0
def setup_environment(settings_mod):
    """Prepare the runtime environment. Used by project 'admin.py' script.
    It will update the configuration settings and load the project.
    """
    project_dir = os.path.dirname(os.path.abspath(settings_mod.__file__))
    settings.update(settings_mod, project_dir=project_dir)