diff options
Diffstat (limited to 'app/guides/guide_urls.py')
-rw-r--r-- | app/guides/guide_urls.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/guides/guide_urls.py b/app/guides/guide_urls.py new file mode 100644 index 0000000..ad67061 --- /dev/null +++ b/app/guides/guide_urls.py @@ -0,0 +1,18 @@ +from django.urls import path, re_path + +from . import views + +app_name = "guide" + +urlpatterns = [ + path( + r'<str:slug>', + views.GuideDetailView.as_view(), + name="guide-detail" + ), + path( + r'<str:slug>.txt', + views.GuideDetailViewTXT.as_view(), + name="guide-detail-txt" + ), +] |