Changeset - 1256497b06fe
[Not reviewed]
default
0 1 0
Dennis Fink - 10 years ago 2014-12-12 18:59:51
dennis.fink@c3l.lu
Use config.from_pyfile instead of config.from_envvar
1 file changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
ennstatus/__init__.py
Show inline comments
 
import os.path
 

	
 
from flask import Flask, render_template
 
from flask.ext.bootstrap import Bootstrap
 
from flask.ext.compress import Compress
 
@@ -11,7 +13,9 @@ compress = Compress()
 
def create_app():
 

	
 
    app = Flask(__name__)
 
    app.config.from_envvar('ENNSTATUS_SETTINGS')
 

	
 
    config_file = os.path.abspath('config.py')
 
    app.config.from_pyfile(config_file)
 

	
 
    app.wsgi_app = ProxyFix(app.wsgi_app)
 

	
0 comments (0 inline, 0 general)