From 45ffcd853d34b52e3fce01c31b0892ddf4845eac Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 7 Apr 2016 21:56:16 +0100 Subject: [PATCH] Remove need for slash at end, but prefer it --- project/pages/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/pages/views.py b/project/pages/views.py index 6841b04..b7437a3 100644 --- a/project/pages/views.py +++ b/project/pages/views.py @@ -9,7 +9,7 @@ from project.common.forms import ContactForm def page_view(request, path): template = None - if path.endswith('/'): + if path.endswith('/'): # Strip trailing slash path = path[:-1] path = swap_page(path)