aboutsummaryrefslogtreecommitdiff
path: root/conf.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-07 23:49:54 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-07 23:49:54 +0200
commit738b45556935d4e0075de5831b6f333ddcbd4647 (patch)
tree8279bb087f56af95912b0ba79757fc791e719c9a /conf.py
parentTesting access keys. (diff)
downloadnewspipe-738b45556935d4e0075de5831b6f333ddcbd4647.tar.gz
newspipe-738b45556935d4e0075de5831b6f333ddcbd4647.tar.bz2
newspipe-738b45556935d4e0075de5831b6f333ddcbd4647.zip
Beginning of the port to PostgreSQL.
Diffstat (limited to 'conf.py')
-rw-r--r--conf.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/conf.py b/conf.py
index 3b723f76..d3beebce 100644
--- a/conf.py
+++ b/conf.py
@@ -15,6 +15,27 @@ except:
config = confparser.SafeConfigParser()
config.read("./conf/conf.cfg")
+
+
+
+
+basedir = os.path.abspath(os.path.dirname(__file__))
+
+CSRF_ENABLED = True
+
+SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL']
+
+# slow database query threshold (in seconds)
+DATABASE_QUERY_TIMEOUT = 0.5
+
+
+
+
+
+
+
+
+
PATH = os.path.abspath(".")
DATABASE_NAME = config.get('database', 'name')
bgstack15