from django.urls import path, re_path from ..views import photo_essay_views as views app_name = "photo_essay" urlpatterns = [ path( r'', views.PhotoEssayDetailView.as_view(), name="detail" ), path( r'/', views.PhotoEssayListView.as_view(), name="list" ), path( r'', views.PhotoEssayListView.as_view(), {'page':1}, name="list" ), ]