1
Fork 0

Remove need for trailing slash in blog urls

This commit is contained in:
Jake Howard 2016-04-08 23:12:33 +01:00
parent 8714b20b74
commit 93c3805ba6

View file

@ -2,5 +2,5 @@ from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^(?P<slug>.+)/$', views.BlogView.as_view(), name='blog-post'),
url(r'^(?P<slug>.+)/?$', views.BlogView.as_view(), name='blog-post'),
]