Make sure all user emails that can be sent in enterprise properly adjust to the app's URL

This commit is contained in:
Joseph Schorr 2014-07-29 13:47:54 -04:00
parent a2f0f57414
commit 6b85ee3eb6
2 changed files with 19 additions and 14 deletions

3
app.py
View file

@ -83,3 +83,6 @@ notification_queue = WorkQueue(app.config['NOTIFICATION_QUEUE_NAME'], tf)
database.configure(app.config)
model.config.app_config = app.config
model.config.store = storage
def get_app_url():
return '%s://%s' % (app.config['PREFERRED_URL_SCHEME'], app.config['SERVER_HOSTNAME'])