provide hook to overwrite site.url in config in local_settings.py

This commit is contained in:
j 2013-02-23 11:37:02 +00:00
parent f7e0971389
commit d2a922bec4

View file

@ -40,6 +40,8 @@ def load_config():
if config: if config:
settings.SITENAME = config['site']['name'] settings.SITENAME = config['site']['name']
if getattr(settings, 'SITEURL'):
config['site']['url'] = settings.SITEURL
settings.URL = config['site']['url'] settings.URL = config['site']['url']
settings.EMAIL_SUBJECT_PREFIX = '[%s]'%settings.SITENAME settings.EMAIL_SUBJECT_PREFIX = '[%s]'%settings.SITENAME
settings.DEFAULT_FROM_EMAIL = config['site']['email']['system'] settings.DEFAULT_FROM_EMAIL = config['site']['email']['system']