diff options
Diffstat (limited to 'app/essays/urls.py')
-rw-r--r-- | app/essays/urls.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/app/essays/urls.py b/app/essays/urls.py new file mode 100644 index 0000000..408e959 --- /dev/null +++ b/app/essays/urls.py @@ -0,0 +1,28 @@ +from django.urls import path, re_path + +from . import views + +app_name = "essays" + +urlpatterns = [ + #path( + # r'topic/<str:slug>', + # views.TopicListView.as_view(), + # name="list_topics" + #), + path( + r'<str:slug>', + views.EntryDetailView.as_view(), + name="detail" + ), + path( + r'<str:slug>.txt', + views.EntryDetailViewTXT.as_view(), + name="detail-txt" + ), + path( + r'', + views.EssayListView.as_view(), + name="list", + ), +] |