diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-04-19 10:49:36 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-04-19 10:49:36 +0200 |
commit | 369b1a46d6d8ab1ec27f484062c0e76b673bd75f (patch) | |
tree | 2024c35081234aba967754b7a9ec0cf5108047e0 /pyaggr3g470r | |
parent | The name of this conf variable should be 'DATABASE_URL' on Heroku. (diff) | |
download | newspipe-369b1a46d6d8ab1ec27f484062c0e76b673bd75f.tar.gz newspipe-369b1a46d6d8ab1ec27f484062c0e76b673bd75f.tar.bz2 newspipe-369b1a46d6d8ab1ec27f484062c0e76b673bd75f.zip |
The problem was the 'database_url' conf variable, which is required on Heroku. We wre using the name 'uri' everywhere.
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r-- | pyaggr3g470r/views/views.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/pyaggr3g470r/views/views.py b/pyaggr3g470r/views/views.py index 3d25f0bb..577d2bcf 100644 --- a/pyaggr3g470r/views/views.py +++ b/pyaggr3g470r/views/views.py @@ -165,18 +165,14 @@ def login(): form = SigninForm() if form.validate_on_submit(): - print("Form OK!") user = UserController().get(email=form.email.data) login_user(user) - print("User loaded!") g.user = user session['email'] = form.email.data identity_changed.send(current_app._get_current_object(), identity=Identity(user.id)) - print("Identity changed!") flash(gettext("Logged in successfully."), 'success') return redirect(url_for('home')) - print("Form not OK!!!") return render_template('login.html', form=form) @@ -574,7 +570,6 @@ def profile(): Edit the profile of the currently logged user. """ user = UserController(g.user.id).get(id=g.user.id) - print(user) form = ProfileForm() if request.method == 'POST': |