Changed configuration values to use the prefix "SECURITY_" instead of a nested dictionary for easier overidding

This commit is contained in:
Matt Wright
2012-03-08 23:02:39 -05:00
parent cd877adebe
commit 1a6cd10d09
3 changed files with 50 additions and 45 deletions
+4 -1
View File
@@ -36,7 +36,10 @@ def create_app(auth_config):
app = Flask(__name__)
app.debug = True
app.config['SECRET_KEY'] = 'secret'
app.config['AUTH'] = auth_config or {}
if auth_config:
for key, value in auth_config.items():
app.config[key] = value
@app.route('/')
def index():