changeset 49:4b78fe544b09

Allow overwriting settings via odfcast/odfcast.ini file With this ini file we can tweak the setting on different environments
author Björn Ricks <bjoern.ricks@intevation.de>
date Mon, 03 Nov 2014 11:51:03 +0100
parents 3bff1a4bc80e
children 58c1b25cf394
files odfcast/__init__.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/odfcast/__init__.py	Mon Nov 03 11:49:43 2014 +0100
+++ b/odfcast/__init__.py	Mon Nov 03 11:51:03 2014 +0100
@@ -6,6 +6,7 @@
 
 app = Flask(__name__)
 app.config.from_object('odfcast.settings')
+app.config.from_pyfile('odfcast.ini', silent=True)
 app.config.from_envvar('ODFCAST_SETTINGS', silent=True)
 
 if app.config["DEBUG"]:
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)