from django.urls import path, re_path from ..views import jrnl_views as views app_name = "jrnl" urlpatterns = [ path( r'feed.xml', views.JrnlRSSFeedView(), name="feed" ), re_path( r'^(?P\d{4})/(?P\d{2})/(?P[-\w]+).txt$', views.JrnlDetailViewTXT.as_view(), name="detail-txt" ), re_path( r'^(?P\d{4})/(?P\d{2})/(?P[-\w]+)$', views.JrnlDetailView.as_view(), name="detail" ), re_path( r'^(?P[0-9]{4})/(?P[0-9]{2})/$', views.JrnlMonthArchiveView.as_view(month_format='%m'), name="list_month" ), re_path( r'(?P\d{4})/$', views.JrnlYearArchiveView.as_view(), name="list_year" ), re_path( r'^(?P\d+)/$', views.JrnlListView.as_view(), name="list" ), path( r'latest/', views.JrnlLatestView.as_view(), name="latest" ), re_path( r'(?P[-\w]+)/(?P\d+)/$', views.JrnlCountryListView.as_view(), name="list_country" ), re_path( r'^(?P[-\w]+)/$', views.JrnlCountryListView.as_view(), {'page':1}, name="list_country" ), re_path( r'', views.JrnlListView.as_view(), {'page':1}, name="list" ), ]