From 369b1a46d6d8ab1ec27f484062c0e76b673bd75f Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 19 Apr 2015 10:49:36 +0200 Subject: The problem was the 'database_url' conf variable, which is required on Heroku. We wre using the name 'uri' everywhere. --- pyaggr3g470r/views/views.py | 5 ----- 1 file changed, 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': -- cgit