from django.urls import path, re_path from . import views app_name = "sightings" urlpatterns = [ path( r'', views.SightingListView.as_view(), {'page': 1}, name="list" ), re_path( r'life-list$', views.LifeListView.as_view(), name='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' # ), ]