diff options
Diffstat (limited to 'bak/unused_apps/sketches/urls.py')
-rw-r--r-- | bak/unused_apps/sketches/urls.py | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/bak/unused_apps/sketches/urls.py b/bak/unused_apps/sketches/urls.py new file mode 100644 index 0000000..465a0d2 --- /dev/null +++ b/bak/unused_apps/sketches/urls.py @@ -0,0 +1,39 @@ +from django.urls import path, re_path + +from . import views + +app_name = "sketches" + +urlpatterns = [ + re_path( + r'(?P<year>[0-9]{4})/$', + views.SketchYearArchiveView.as_view(), + name="list_year" + ), + path( + r'', + views.SketchListView.as_view(), + {'page': 1}, + name="list" + ), + path( + r'<int:page>/', + views.SketchListView.as_view(), + name="list" + ), + path( + r'<int:year>/<int:month>/<str:slug>.txt', + views.SketchDetailViewTXT.as_view(), + name="detail-txt" + ), + path( + r'<int:year>/<int:month>/<str:slug>', + views.SketchDetailView.as_view(), + name="detail" + ), + path( + r'<int:year>/<int:month>/', + views.SketchMonthArchiveView.as_view(month_format='%m'), + name="list_month" + ), +] |