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