diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-04-07 23:49:54 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-04-07 23:49:54 +0200 |
commit | 738b45556935d4e0075de5831b6f333ddcbd4647 (patch) | |
tree | 8279bb087f56af95912b0ba79757fc791e719c9a /conf.py | |
parent | Testing access keys. (diff) | |
download | newspipe-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.py | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -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') |