From 738b45556935d4e0075de5831b6f333ddcbd4647 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 7 Apr 2014 23:49:54 +0200 Subject: Beginning of the port to PostgreSQL. --- conf.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'conf.py') 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') -- cgit