aboutsummaryrefslogtreecommitdiff
path: root/wqflask/wqflask
diff options
context:
space:
mode:
authorzsloan2015-09-11 22:36:43 +0000
committerzsloan2015-09-11 22:36:43 +0000
commitfc4b6828055fffbd1adbe226bfbf706c425119a9 (patch)
tree5d712a92410754e412dc8bb7da992780b9d8229a /wqflask/wqflask
parent52751a5600245af7608441dbb39e99264668ecdb (diff)
parent962c80e669d2d2fe7ef6dc8c11fb827ebe7926bc (diff)
downloadgenenetwork2-fc4b6828055fffbd1adbe226bfbf706c425119a9.tar.gz
Merge branch 'master' of github.com:genenetwork/genenetwork2
Diffstat (limited to 'wqflask/wqflask')
-rwxr-xr-xwqflask/wqflask/__init__.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/wqflask/wqflask/__init__.py b/wqflask/wqflask/__init__.py
index 8e648c63..478d0a71 100755
--- a/wqflask/wqflask/__init__.py
+++ b/wqflask/wqflask/__init__.py
@@ -6,16 +6,14 @@ print("sys.path is:", sys.path)
import jinja2
from flask import Flask
-
from utility import formatting
app = Flask(__name__)
-app.config.SECURITY_PASSWORD_HASH='bcrypt'
+app.config.from_object('cfg.default_settings') # Get the defaults from cfg.default_settings
+app.config.from_envvar('WQFLASK_SETTINGS') # See http://flask.pocoo.org/docs/config/#configuring-from-files
-# See http://flask.pocoo.org/docs/config/#configuring-from-files
-app.config.from_object('cfg.default_settings')
-app.config.from_envvar('WQFLASK_SETTINGS')
+print("Current application configuration:", app.config)
app.jinja_env.globals.update(
undefined = jinja2.StrictUndefined,