From 5bc22c064fbc51987007d85fbc8296a998cf6e84 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Wed, 18 Sep 2019 21:14:38 -0400 Subject: added posts, consolidated essays into posts --- app/posts/guide_urls.py | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 app/posts/guide_urls.py (limited to 'app/posts/guide_urls.py') diff --git a/app/posts/guide_urls.py b/app/posts/guide_urls.py new file mode 100644 index 0000000..d43d76a --- /dev/null +++ b/app/posts/guide_urls.py @@ -0,0 +1,29 @@ +from django.urls import path, re_path + +from . import views + +app_name = "guides" + +urlpatterns = [ + path( + r'', + views.PostDetailView.as_view(), + name="detail" + ), + path( + r'.txt', + views.PostDetailViewTXT.as_view(), + name="detail-txt" + ), + path( + r'/', + views.GuidesListView.as_view(), + name="list" + ), + path( + r'', + views.GuidesListView.as_view(), + {'page':1}, + name="list" + ), +] -- cgit v1.2.3-70-g09d2