diff options
author | lxf <sng@luxagraf.net> | 2022-05-14 16:38:07 -0400 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2022-05-14 16:38:07 -0400 |
commit | bb3973ffb714c932e9ec6dd6a751228dc71fe1d3 (patch) | |
tree | 6fa32f9392ad2ec32271349b86a4c1388fd6ba95 /app/classes/urls.py |
initial commit
Diffstat (limited to 'app/classes/urls.py')
-rw-r--r-- | app/classes/urls.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app/classes/urls.py b/app/classes/urls.py new file mode 100644 index 0000000..ac9cce5 --- /dev/null +++ b/app/classes/urls.py @@ -0,0 +1,24 @@ +from django.urls import path, re_path + +from . import views + +app_name = "classes" + +urlpatterns = [ + path( + r'<str:slug>', + views.ClassDetailView.as_view(), + name="detail" + ), + path( + r'', + views.ClassListView.as_view(), + {'page': 1}, + name="list" + ), + path( + r'<page>/', + views.ClassListView.as_view(), + name="list" + ), +] |