Let setup_global_and_app_config set the global and app
config in the mg_globals already. This way, the config is
available to everyone very early.
#######################################################
setup_globals(
- app_config=app_config,
- global_config=global_config,
-
# TODO: No need to set these two up as globals, we could
# just read them out of mg_globals.app_config
email_sender_address=app_config['email_sender_address'],
from mediagoblin import staticdirect
from mediagoblin.init.config import (
read_mediagoblin_config, generate_validation_report)
+from mediagoblin.mg_globals import setup_globals
class Error(Exception): pass
if validation_report:
raise ImproperlyConfigured(validation_report)
+ setup_globals(
+ app_config=app_config,
+ global_config=global_config)
+
return global_config, app_config
def get_jinja_loader(user_template_path=None):