summaryrefslogtreecommitdiff
path: root/app/sketches/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/sketches/urls.py')
-rw-r--r--app/sketches/urls.py39
1 files changed, 39 insertions, 0 deletions
diff --git a/app/sketches/urls.py b/app/sketches/urls.py
new file mode 100644
index 0000000..4bade9b
--- /dev/null
+++ b/app/sketches/urls.py
@@ -0,0 +1,39 @@
+from django.urls import path
+
+from . import views
+
+app_name = "sketches"
+
+urlpatterns = [
+ 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"
+ ),
+ path(
+ r'<int:year>/',
+ views.SketchYearArchiveView.as_view(),
+ name="list_year"
+ ),
+]