summaryrefslogtreecommitdiff
path: root/app/posts/urls
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2024-02-29 19:31:11 -0600
committerluxagraf <sng@luxagraf.net>2024-02-29 19:31:11 -0600
commita08bda7e08de6f510748fa094fb55bbbdb673c12 (patch)
tree5cb463ef2cb2710455fd9b25de32577a0c5a140a /app/posts/urls
parentb5db26426d58b6394c8a2b15aacabd3c9e883807 (diff)
range: added craft urls and views
Diffstat (limited to 'app/posts/urls')
-rw-r--r--app/posts/urls/craft_urls.py (renamed from app/posts/urls/guide_urls_old.py)14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/posts/urls/guide_urls_old.py b/app/posts/urls/craft_urls.py
index d43d76a..92f0f87 100644
--- a/app/posts/urls/guide_urls_old.py
+++ b/app/posts/urls/craft_urls.py
@@ -1,28 +1,28 @@
from django.urls import path, re_path
-from . import views
+from ..views import craft_views as views
-app_name = "guides"
+app_name = "craft"
urlpatterns = [
path(
r'<str:slug>',
- views.PostDetailView.as_view(),
- name="detail"
+ views.CraftDetailView.as_view(),
+ name="craft-detail"
),
path(
r'<str:slug>.txt',
- views.PostDetailViewTXT.as_view(),
+ views.CraftDetailViewTXT.as_view(),
name="detail-txt"
),
path(
r'<int:page>/',
- views.GuidesListView.as_view(),
+ views.CraftListView.as_view(),
name="list"
),
path(
r'',
- views.GuidesListView.as_view(),
+ views.CraftListView.as_view(),
{'page':1},
name="list"
),