from django.urls import path, re_path from . import views app_name = "classes" urlpatterns = [ path( r'', views.ClassDetailView.as_view(), name="detail" ), path( r'', views.ClassListView.as_view(), {'page': 1}, name="list" ), path( r'/', views.ClassListView.as_view(), name="list" ), ]