fix url order
This commit is contained in:
@@ -8,6 +8,8 @@ app_name = apps.PostsConfig.name
|
|||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path("", views.index, name="posts.index"),
|
path("", views.index, name="posts.index"),
|
||||||
|
# fet calendar (path have to be ahead posts.show)
|
||||||
|
path("fet_calendar.ics", views.calendar, name="posts.calendar"),
|
||||||
path("<str:id>", views.show, name="posts.show"),
|
path("<str:id>", views.show, name="posts.show"),
|
||||||
re_path(
|
re_path(
|
||||||
r"^(?P<id>[-\w]+)/agenda.pdf$",
|
r"^(?P<id>[-\w]+)/agenda.pdf$",
|
||||||
@@ -20,7 +22,6 @@ urlpatterns = [
|
|||||||
name="show_pdf_protocol",
|
name="show_pdf_protocol",
|
||||||
),
|
),
|
||||||
path("t/<str:tag>", views.tags, name="posts.tags"),
|
path("t/<str:tag>", views.tags, name="posts.tags"),
|
||||||
path("fet_calendar.ics", views.calendar, name="posts.calendar"),
|
|
||||||
path("func/tag_complete", tag_complete),
|
path("func/tag_complete", tag_complete),
|
||||||
path("func/slug_calc", slug_calc),
|
path("func/slug_calc", slug_calc),
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user