Skip to content

Commit

Permalink
updated url pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarthak5598 committed Nov 5, 2024
1 parent c01b8c9 commit 85416b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions blog/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

urlpatterns = [
path("", views.PostListView.as_view(), name="post_list"),
path("post/new/", views.PostCreateView.as_view(), name="post_create"),
path("post/<slug:slug>/", views.PostDetailView.as_view(), name="post_detail"),
path("post/<slug:slug>/edit/", views.PostUpdateView.as_view(), name="post_update"),
path("post/<slug:slug>/delete/", views.PostDeleteView.as_view(), name="post_delete"),
path("new/", views.PostCreateView.as_view(), name="post_create"),
path("<slug:slug>/", views.PostDetailView.as_view(), name="post_detail"),
path("<slug:slug>/edit/", views.PostUpdateView.as_view(), name="post_update"),
path("<slug:slug>/delete/", views.PostDeleteView.as_view(), name="post_delete"),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

0 comments on commit 85416b2

Please sign in to comment.