summaryrefslogtreecommitdiff
path: root/app/tutorials/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/tutorials/urls.py')
-rw-r--r--app/tutorials/urls.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/app/tutorials/urls.py b/app/tutorials/urls.py
new file mode 100644
index 0000000..8f4b189
--- /dev/null
+++ b/app/tutorials/urls.py
@@ -0,0 +1,23 @@
+from django.urls import path, re_path
+
+from . import views
+
+app_name = "src"
+
+urlpatterns = [
+ path(
+ r'<slug>.txt',
+ views.EntryDetailViewTXT.as_view(),
+ name="detail-txt"
+ ),
+ path(
+ r'<slug>',
+ views.EntryDetailView.as_view(),
+ name="detail"
+ ),
+ path(
+ r'',
+ views.TutorialListView.as_view(),
+ name="list",
+ ),
+]