From 7067ed5649840f16047690491aa826742b147cfc Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sun, 19 Jun 2016 08:10:44 +0000 Subject: Settings: reordering default_settings.py --- etc/default_settings.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'etc/default_settings.py') diff --git a/etc/default_settings.py b/etc/default_settings.py index 8682c778..81c7001a 100644 --- a/etc/default_settings.py +++ b/etc/default_settings.py @@ -11,18 +11,12 @@ import os import sys -HOME=os.environ['HOME'] -LOGFILE = HOME+"/genenetwork2.log" - -# This is needed because Flask turns key errors into a -# 400 bad request response with no exception/log -TRAP_BAD_REQUEST_ERRORS = True - SQL_URI = "mysql://gn2:mysql_password@localhost/db_webqtl_s" SQLALCHEMY_DATABASE_URI = 'mysql://gn2:mysql_password@localhost/db_webqtl_s' SQLALCHEMY_POOL_RECYCLE = 3600 -# http://pythonhosted.org/Flask-Security/configuration.html +# Flask configuration (see website) +TRAP_BAD_REQUEST_ERRORS = True SECURITY_CONFIRMABLE = True SECURITY_TRACKABLE = True SECURITY_REGISTERABLE = True @@ -46,6 +40,8 @@ LOG_SQL = 'False' # Log SQL/backend calls USE_REDIS = True # REDIS caching (note that redis will be phased out) # Path overrides for Genenetwork +HOME=os.environ['HOME'] +LOGFILE = HOME+"/genenetwork2.log" GENENETWORK_FILES = HOME+"/gn2_data" PYLMM_COMMAND = str.strip(os.popen("which pylmm_redis").read()) PLINK_COMMAND = str.strip(os.popen("which plink2").read()) -- cgit v1.2.3