provide hook to overwrite site.url in config in local_settings.py
This commit is contained in:
parent
f7e0971389
commit
d2a922bec4
1 changed files with 2 additions and 0 deletions
|
@ -40,6 +40,8 @@ def load_config():
|
|||
|
||||
if config:
|
||||
settings.SITENAME = config['site']['name']
|
||||
if getattr(settings, 'SITEURL'):
|
||||
config['site']['url'] = settings.SITEURL
|
||||
settings.URL = config['site']['url']
|
||||
settings.EMAIL_SUBJECT_PREFIX = '[%s]'%settings.SITENAME
|
||||
settings.DEFAULT_FROM_EMAIL = config['site']['email']['system']
|
||||
|
|
Loading…
Reference in a new issue