From 93c3805ba64141589a455b3060cf99c43fdebdcf Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 8 Apr 2016 23:12:33 +0100 Subject: [PATCH] Remove need for trailing slash in blog urls --- project/blog/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/blog/urls.py b/project/blog/urls.py index 5bd7321..51d5239 100644 --- a/project/blog/urls.py +++ b/project/blog/urls.py @@ -2,5 +2,5 @@ from django.conf.urls import url from . import views urlpatterns = [ - url(r'^(?P.+)/$', views.BlogView.as_view(), name='blog-post'), + url(r'^(?P.+)/?$', views.BlogView.as_view(), name='blog-post'), ]