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