summaryrefslogtreecommitdiff
path: root/app/posts/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/posts/urls.py')
-rw-r--r--app/posts/urls.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/app/posts/urls.py b/app/posts/urls.py
new file mode 100644
index 0000000..322e5ad
--- /dev/null
+++ b/app/posts/urls.py
@@ -0,0 +1,24 @@
+from django.urls import path, re_path
+from django.views.generic.base import RedirectView
+
+from . import views
+
+app_name = "posts"
+
+urlpatterns = [
+ path(
+ r'<str:slug>.txt',
+ views.EntryDetailViewTXT.as_view(),
+ name="detail-txt"
+ ),
+ path(
+ r'<str:slug>',
+ views.EntryDetailView.as_view(),
+ name="detail"
+ ),
+ re_path(
+ r'<int:page>/',
+ views.EntryList.as_view(),
+ name="list"
+ ),
+]