aboutsummaryrefslogtreecommitdiff
path: root/conf.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-13 12:56:50 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-13 12:56:50 +0200
commit4e6c9024dddc5c09307fd06eb38ecd57916da102 (patch)
tree7b45b10f22dbadfdfec84e17f97b3a44a069967d /conf.py
parentTest of the new crawler with gevent. (diff)
downloadnewspipe-4e6c9024dddc5c09307fd06eb38ecd57916da102.tar.gz
newspipe-4e6c9024dddc5c09307fd06eb38ecd57916da102.tar.bz2
newspipe-4e6c9024dddc5c09307fd06eb38ecd57916da102.zip
The crawler is launched in a other process.
Diffstat (limited to 'conf.py')
-rw-r--r--conf.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/conf.py b/conf.py
index 2c54ae91..d6c71819 100644
--- a/conf.py
+++ b/conf.py
@@ -8,6 +8,9 @@ This file contain the variables used by the application.
import os, sys
+basedir = os.path.abspath(os.path.dirname(__file__))
+PATH = os.path.abspath(".")
+
ON_HEROKU = int(os.environ.get('HEROKU', 0)) == 1
if not ON_HEROKU:
@@ -41,9 +44,6 @@ if not ON_HEROKU:
MAIL_PASSWORD = config.get('mail', 'password')
MAIL_FROM = config.get('mail', 'mail_from')
MAIL_TO = config.get('mail', 'mail_to')
-
- basedir = os.path.abspath(os.path.dirname(__file__))
- PATH = os.path.abspath(".")
WEBZINE_ROOT = PATH + "/pyaggr3g470r/var/export/"
@@ -62,6 +62,7 @@ else:
WEBZINE_ROOT = "/tmp/"
+
CSRF_ENABLED = True
# slow database query threshold (in seconds)
DATABASE_QUERY_TIMEOUT = 0.5
bgstack15