X-Git-Url: https://git.p6c8.net/pcdenotes.git/blobdiff_plain/3fb7b9dea69252f64ee82967dfca97baf1b02df7..refs/pull/1/head:/notes/urls.py diff --git a/notes/urls.py b/notes/urls.py index 503c5b4..9a20053 100644 --- a/notes/urls.py +++ b/notes/urls.py @@ -1,9 +1,13 @@ -from django.urls import path +from django.urls import path, re_path from . import views app_name = 'notes' urlpatterns=[ - path('', views.note_list, name="note_list"), - path('notes/', views.note_detail, name="note_detail"), + path('', views.note_list, name='note_list'), + re_path('^notes/?$', views.note_redirect, name='note_redirect'), + path('notes/', views.note_detail, name='note_detail'), + path('archive/', views.archive_main, name='archive_main'), + path('archive//', views.archive_year, name='archive_year'), + path('archive///', views.archive_month, name='archive_month'), ] \ No newline at end of file