You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
562 B
12 lines
562 B
from django.urls import re_path
|
|
from . import views
|
|
|
|
|
|
urlpatterns = [
|
|
re_path(r"^$", views.BlogIndexView.as_view(), name="blog"),
|
|
|
|
re_path(r"^section/(?P<section>[-\w]+)/$", views.SectionIndexView.as_view(), name="blog_section"),
|
|
re_path(r"^post/(?P<post_pk>\d+)/$", views.StaffPostDetailView.as_view(), name="blog_post_pk"),
|
|
re_path(r"^post/(?P<post_secret_key>\w+)/$", views.SecretKeyPostDetailView.as_view(), name="blog_post_secret"),
|
|
re_path(r"^(?P<post_slug>[-\w]+)/$", views.SlugUniquePostDetailView.as_view(), name="blog_post_slug")
|
|
]
|
|
|