diff options
Diffstat (limited to 'app/posts/note_urls.py')
-rw-r--r-- | app/posts/note_urls.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/app/posts/note_urls.py b/app/posts/note_urls.py new file mode 100644 index 0000000..4bf6914 --- /dev/null +++ b/app/posts/note_urls.py @@ -0,0 +1,23 @@ +from django.urls import path, re_path + +from . import views + +app_name = "notes" + +urlpatterns = [ + path( + r'', + views.NoteCreateView.as_view(), + name="create" + ), + path( + r'<pk>/edit', + views.NoteUpdateView.as_view(), + name="edit" + ), + path( + r'<pk>/notes', + views.PostNotesView.as_view(), + name="detail" + ), +] |