from django.urls import path, re_path from ..views import essay_views as views app_name = "essays" urlpatterns = [ path( r'//', views.EssayCategoryList.as_view(), name="category-detail" ), path( r'/', views.EssayCategoryList.as_view(), {'page':1}, name="category-detail" ), path( r'/', views.EssayDetailView.as_view(), name="detail" ), path( r'.txt', views.EssayDetailViewTXT.as_view(), name="detail-txt" ), path( r'/', views.EssayListView.as_view(), name="list" ), path( r'', views.EssayListView.as_view(), {'page':1}, name="list" ), ]