aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2015-09-09 13:34:34 -0500
committerzsloan2015-09-09 13:34:34 -0500
commitf8c8a5164eeb3ddb3c4b5cca8610729f9b549b98 (patch)
treeb7a6e30e3ef730acc53932f36d47fa539c0043da
parentd900509f90f18d4f11310e3caa67f90ba820ae55 (diff)
parentf1c99378cbc0f40297e536b24c9b7af9cbf6b330 (diff)
downloadgenenetwork2-f8c8a5164eeb3ddb3c4b5cca8610729f9b549b98.tar.gz
Merge pull request #114 from DannyArends/master
This should fix issue #113
-rwxr-xr-xwqflask/cfg/default_settings.py6
-rwxr-xr-xwqflask/wqflask/__init__.py8
2 files changed, 8 insertions, 6 deletions
diff --git a/wqflask/cfg/default_settings.py b/wqflask/cfg/default_settings.py
index 8b5d1313..88159321 100755
--- a/wqflask/cfg/default_settings.py
+++ b/wqflask/cfg/default_settings.py
@@ -14,4 +14,8 @@ SECURITY_EMAIL_SENDER = "no-reply@genenetwork.org"
SECURITY_POST_LOGIN_VIEW = "/thank_you"
-SQLALCHEMY_POOL_RECYCLE = 3600 \ No newline at end of file
+SQLALCHEMY_POOL_RECYCLE = 3600
+
+SECURITY_PASSWORD_HASH = "bcrypt"
+SESSION_TYPE = "filesystem"
+SECRET_KEY = "secretkey"
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,