Commit ec21cf19 authored by hypsug0's avatar hypsug0
Browse files

refactor: rename actu_list url name to home

parent 558b3788
......@@ -6,7 +6,7 @@ app_name = "blog"
urlpatterns = [
path("", ActuList.as_view(), name="home"),
path("actu/list/page<int:page>", ActuList.as_view(), name="actu_list"),
path("actu/list/page<int:page>", ActuList.as_view(), name="home"),
path("actu/<int:pk>/detail", ActuDetail.as_view(), name="actu_detail"),
path("actu/add", ActuCreate.as_view(), name="actu_create"),
path("actu/<int:pk>/update", ActuUpdate.as_view(), name="actu_update"),
......
......@@ -87,7 +87,7 @@ class ActuDetail(DetailView):
class ActuList(ListView):
model = Actu
template_name = "actu_list.html"
template_name = "home.html"
ordering = "-timestamp_update"
paginate_by = 3
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment