from django.urls import path, re_path from . import views app_name = "sightings" urlpatterns = [ path( r'', views.SightingListView.as_view(), {'page': 1}, name="list" ), path( r'life-list/', views.YearListView.as_view(), name='list-by-year' ), re_path( r'life-list$', views.LifeListView.as_view(), name='life-list' ), re_path( r'not-life-list$', views.NotLifeListView.as_view(), name='not-life-list' ), re_path( r'(?P\d+)/$', views.SightingListView.as_view(), name="list" ), path( r'', views.SightingDetailView.as_view(), name='detail' ), # path( # r'/', # views.SightingListUserView.as_view(), # {'page':1}, # name='list_by_person' # ), # path( # r'//', # views.SightingListUserView.as_view(), # name='list_by_person' # ), ]