Remove need for trailing slash in blog urls
This commit is contained in:
parent
8714b20b74
commit
93c3805ba6
1 changed files with 1 additions and 1 deletions
|
@ -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'),
|
||||
]
|
||||
|
|
Reference in a new issue