from django.urls import re_path from . import views urlpatterns = [ re_path(r"^$", views.BlogIndexView.as_view(), name="blog"), re_path(r"^section/(?P
[-\w]+)/$", views.SectionIndexView.as_view(), name="blog_section"), re_path(r"^post/(?P\d+)/$", views.StaffPostDetailView.as_view(), name="blog_post_pk"), re_path(r"^post/(?P\w+)/$", views.SecretKeyPostDetailView.as_view(), name="blog_post_secret"), re_path(r"^(?P[-\w]+)/$", views.SlugUniquePostDetailView.as_view(), name="blog_post_slug") ]