diff options
author | luxagraf <sng@luxagraf.net> | 2018-07-08 09:36:58 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-07-08 09:36:58 -0400 |
commit | a34140c05956d5dfc6ef38d264bdcd7e32d4e22d (patch) | |
tree | 7fc5a8e4cddd498bc9b967bd8d397f1cceaa68d1 /app/unused_apps/ccg_notes/urls.py | |
parent | 6a2393e6819ea09aeb559354a69746750aa8cbdf (diff) |
moved ccg notes to unused
Diffstat (limited to 'app/unused_apps/ccg_notes/urls.py')
-rw-r--r-- | app/unused_apps/ccg_notes/urls.py | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/app/unused_apps/ccg_notes/urls.py b/app/unused_apps/ccg_notes/urls.py new file mode 100644 index 0000000..0f9fad7 --- /dev/null +++ b/app/unused_apps/ccg_notes/urls.py @@ -0,0 +1,62 @@ +from django.conf.urls import url +from django.views.generic.base import RedirectView + +from . import views + +app_name = "notes" + +urlpatterns = [ + url( + r'(?P<year>\d{4})/(?P<month>\d{2})/(?P<slug>[-\w]+).txt$', + views.NoteDetailViewTXT.as_view(), + name="detail-txt" + ), + url( + r'(?P<year>\d{4})/(?P<month>\d{2})/(?P<slug>[-\w]+).amp$', + views.NoteDetailViewAMP.as_view(), + name="detail-amp" + ), + url( + r'(?P<year>\d{4})/(?P<month>\d{2})/(?P<slug>[-\w]+)$', + views.NoteDetailView.as_view(), + name="detail" + ), + url( + r'^(?P<year>[0-9]{4})/(?P<month>[0-9]{2})/$', + views.NoteMonthArchiveView.as_view(month_format='%m'), + name="list_month" + ), + url( + r'(?P<year>\d{4})/$', + views.NoteYearArchiveView.as_view(), + name="list_year" + ), + + + url( + r'(?P<year>\d{4})/(?P<month>\d{2})/$', + views.date_list, + name="notes_by_month" + ), + url( + r'(?P<year>\d{4})/$', + views.date_list, + name="notes_by_year" + ), + url( + r'(?P<page>\d+)/$', + views.NoteList.as_view(), + name="list" + ), + # redirect / to /1/ for live server + url( + r'', + RedirectView.as_view(url="/field-notes/1/", permanent=False), + name="live_redirect" + ), + url( + r'^$', + views.entry_list, + name="notes_archive" + ), +] |