From c1b5eb1375cef77454973d5345628de1a9fe9ae6 Mon Sep 17 00:00:00 2001 From: Glandos Date: Wed, 11 Jul 2018 13:23:56 +0200 Subject: Remove strict_slashes for / I don't know why, but on my setup (nginx + uwsgi), the `strict_slashes` (default to `True`) was causing an infinite loop. I think it could be safely removed for this route only. --- ihatemoney/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ihatemoney/web.py') diff --git a/ihatemoney/web.py b/ihatemoney/web.py index 1e16202..6e876c0 100644 --- a/ihatemoney/web.py +++ b/ihatemoney/web.py @@ -198,7 +198,7 @@ def authenticate(project_id=None): return render_template("authenticate.html", form=form) -@main.route("/") +@main.route("/", strict_slashes=False) def home(): project_form = ProjectForm() auth_form = AuthenticationForm() -- cgit v1.1