aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-09 19:46:10 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-09 19:46:10 +0200
commit3d028d6dc563af46f7cf8ead5036046b675a7e22 (patch)
tree05011940152dc34267bc2c7d409fe0bc18967049 /pyaggr3g470r
parentFixed bug for deployment on Herolu (1). (diff)
downloadnewspipe-3d028d6dc563af46f7cf8ead5036046b675a7e22.tar.gz
newspipe-3d028d6dc563af46f7cf8ead5036046b675a7e22.tar.bz2
newspipe-3d028d6dc563af46f7cf8ead5036046b675a7e22.zip
Fixed bug for deployment on Herolu (2).
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r--pyaggr3g470r/feedgetter.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pyaggr3g470r/feedgetter.py b/pyaggr3g470r/feedgetter.py
index 91c3e2f0..96917fcf 100644
--- a/pyaggr3g470r/feedgetter.py
+++ b/pyaggr3g470r/feedgetter.py
@@ -44,8 +44,11 @@ import conf
#import search
import utils
-from flask.ext.mail import Message
-from pyaggr3g470r import app, db, mail
+if not conf.ON_HEROKU:
+ from flask.ext.mail import Message
+ from pyaggr3g470r import mail
+
+from pyaggr3g470r import app, db
from pyaggr3g470r.models import User, Feed, Article
import log
bgstack15