diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-04-12 14:06:55 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-04-12 14:06:55 +0200 |
commit | 6c93d208c8b550f73a616906f71e1092a04e889b (patch) | |
tree | 2a8e3be071ae79ede53dccdbc204a1e861eecb5c /pyaggr3g470r/views.py | |
parent | For the moment disable full text search on Heroku. (diff) | |
download | newspipe-6c93d208c8b550f73a616906f71e1092a04e889b.tar.gz newspipe-6c93d208c8b550f73a616906f71e1092a04e889b.tar.bz2 newspipe-6c93d208c8b550f73a616906f71e1092a04e889b.zip |
No SMTP for Heroku (for the moment).
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r-- | pyaggr3g470r/views.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index fdb8fbe5..dc8a2b12 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -504,10 +504,12 @@ def edit_feed(feed_id=None): if request.method == 'GET': if feed_id != None: form = AddFeedForm(obj=feed) - return render_template('edit_feed.html', action="Edit the feed", form=form, feed=feed) + return render_template('edit_feed.html', action="Edit the feed", form=form, feed=feed, \ + not_on_heroku = not conf.ON_HEROKU) # Return an empty form in order to create a new feed - return render_template('edit_feed.html', action="Add a feed", form=form) + return render_template('edit_feed.html', action="Add a feed", form=form, \ + not_on_heroku = not conf.ON_HEROKU) @app.route('/delete_feed/<feed_id>', methods=['GET']) @login_required |