15 lines
467 B
Python
15 lines
467 B
Python
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
app_name = "posts"
|
|
urlpatterns = [
|
|
path("post/<int:pk>", views.PostDetailView.as_view(), name="post_detail"),
|
|
path(
|
|
"post/<int:pk>/fullscreen",
|
|
views.PostDetailView.as_view(template_name_suffix="_fullscreen"),
|
|
name="post_fullscreen",
|
|
),
|
|
path("post/new", views.PostCreateView.as_view(), name="post_create"),
|
|
path("posts", views.PostListView.as_view(), name="post_list"),
|
|
]
|