archive per week

This commit is contained in:
j 2023-08-31 17:05:27 +01:00
commit dd2ce36765
5 changed files with 89 additions and 6 deletions

View file

@ -32,7 +32,9 @@ urlpatterns = [
path('register/', user_views.register, name='register'),
path('comment/publish/', item_views.publish_comment, name='publish-comment'),
path('comment/', item_views.comment, name='comment'),
path('_<int:year>-<int:month>-<int:day>/', item_views.archive, name='archive'),
path('_<int:year>/', item_views.archive, name='archive'),
path('_<int:year>/<int:week>/', item_views.archive, name='archive'),
path('<int:id>/', item_views.item, name='item'),
path('<str:slug>/', page_views.page, name='page'),
path('', item_views.index, name='index'),