From a22d349573d60564e582b9a314c9463385d03dac Mon Sep 17 00:00:00 2001 From: luxagraf Date: Wed, 19 Jul 2023 15:50:29 -0500 Subject: posts: made create and update forms for notes --- app/posts/note_urls.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 app/posts/note_urls.py (limited to 'app/posts/note_urls.py') 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'/edit', + views.NoteUpdateView.as_view(), + name="edit" + ), + path( + r'/notes', + views.PostNotesView.as_view(), + name="detail" + ), +] -- cgit v1.2.3-70-g09d2