X-Git-Url: https://git.p6c8.net/pcdenotes.git/blobdiff_plain/6a0691dfa1af7c040e43aab03646238b92abe235..71736b7bbf3c025b7dc5f85fce395b1b0591265b:/notes/urls.py?ds=sidebyside diff --git a/notes/urls.py b/notes/urls.py index 503c5b4..560e8f5 100644 --- a/notes/urls.py +++ b/notes/urls.py @@ -1,9 +1,10 @@ -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'), ] \ No newline at end of file