summaryrefslogtreecommitdiff
path: root/app/posts/urls/src_urls.py
diff options
context:
space:
mode:
authorlxf <sng@luxagraf.net>2022-05-14 16:38:07 -0400
committerlxf <sng@luxagraf.net>2022-05-14 16:38:07 -0400
commitbb3973ffb714c932e9ec6dd6a751228dc71fe1d3 (patch)
tree6fa32f9392ad2ec32271349b86a4c1388fd6ba95 /app/posts/urls/src_urls.py
initial commit
Diffstat (limited to 'app/posts/urls/src_urls.py')
-rw-r--r--app/posts/urls/src_urls.py49
1 files changed, 49 insertions, 0 deletions
diff --git a/app/posts/urls/src_urls.py b/app/posts/urls/src_urls.py
new file mode 100644
index 0000000..637d9a6
--- /dev/null
+++ b/app/posts/urls/src_urls.py
@@ -0,0 +1,49 @@
+from django.urls import path, re_path
+
+from ..views import src_views as views
+
+app_name = "src"
+
+urlpatterns = [
+ path(
+ r'feed.xml',
+ views.SrcRSSFeedView(),
+ name="feed"
+ ),
+ path(
+ r'topic/<str:slug>',
+ views.TopicListView.as_view(),
+ name="list_topics"
+ ),
+ #path(
+ # r'books/<str:slug>',
+ # views.BookDetailView.as_view(),
+ # name='detail_book'
+ #),
+ #path(
+ # r'books/',
+ # views.BookListView.as_view(),
+ # name='list_books'
+ #),
+ path(
+ r'<str:slug>.txt',
+ views.SrcDetailViewTXT.as_view(),
+ name="detail-txt"
+ ),
+ path(
+ r'<str:slug>',
+ views.SrcDetailView.as_view(),
+ name="detail"
+ ),
+ re_path(
+ r'<int:page>',
+ views.SrcListView.as_view(),
+ name="list"
+ ),
+ path(
+ r'',
+ views.SrcListView.as_view(),
+ {'page':1},
+ name="list"
+ ),
+]