diff options
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" + ), +] |