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