diff options
author | luxagraf <sng@luxagraf.net> | 2024-02-29 19:31:11 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2024-02-29 19:31:11 -0600 |
commit | a08bda7e08de6f510748fa094fb55bbbdb673c12 (patch) | |
tree | 5cb463ef2cb2710455fd9b25de32577a0c5a140a /app/posts/urls/craft_urls.py | |
parent | b5db26426d58b6394c8a2b15aacabd3c9e883807 (diff) |
range: added craft urls and views
Diffstat (limited to 'app/posts/urls/craft_urls.py')
-rw-r--r-- | app/posts/urls/craft_urls.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app/posts/urls/craft_urls.py b/app/posts/urls/craft_urls.py new file mode 100644 index 0000000..92f0f87 --- /dev/null +++ b/app/posts/urls/craft_urls.py @@ -0,0 +1,29 @@ +from django.urls import path, re_path + +from ..views import craft_views as views + +app_name = "craft" + +urlpatterns = [ + path( + r'<str:slug>', + views.CraftDetailView.as_view(), + name="craft-detail" + ), + path( + r'<str:slug>.txt', + views.CraftDetailViewTXT.as_view(), + name="detail-txt" + ), + path( + r'<int:page>/', + views.CraftListView.as_view(), + name="list" + ), + path( + r'', + views.CraftListView.as_view(), + {'page':1}, + name="list" + ), +] |