summaryrefslogtreecommitdiff
path: root/app/posts/urls/src_urls.py
diff options
context:
space:
mode:
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"
+ ),
+]