summaryrefslogtreecommitdiff
path: root/app/gtd/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/gtd/urls.py')
-rw-r--r--app/gtd/urls.py101
1 files changed, 101 insertions, 0 deletions
diff --git a/app/gtd/urls.py b/app/gtd/urls.py
new file mode 100644
index 0000000..db416bb
--- /dev/null
+++ b/app/gtd/urls.py
@@ -0,0 +1,101 @@
+from django.urls import path, re_path
+
+from . import views
+
+app_name = "gtd"
+
+urlpatterns = [
+ path(
+ r'todo',
+ views.GTDNoteTODOView.as_view(),
+ name="note-list"
+ ),
+ path(
+ r'notes',
+ views.GTDNoteListView.as_view(),
+ {'status':None},
+ name="note-list"
+ ),
+ path(
+ r'notes/create',
+ views.GTDNoteCreateView.as_view(),
+ name="note-create"
+ ),
+ path(
+ r'notes/<str:status>',
+ views.GTDNoteListView.as_view(),
+ name="note-list-status"
+ ),
+ path(
+ r'note/<pk>/edit',
+ views.GTDNoteUpdateView.as_view(),
+ name="note-edit"
+ ),
+ path(
+ r'projects',
+ views.GTDProjectListView.as_view(),
+ name="project-list"
+ ),
+ path(
+ r'projects/create',
+ views.GTDProjectCreateView.as_view(),
+ name="project-create"
+ ),
+ path(
+ r'projects/<pk>',
+ views.GTDProjectDetailView.as_view(),
+ name="project-detail"
+ ),
+ path(
+ r'projects/<pk>/edit',
+ views.GTDProjectUpdateView.as_view(),
+ name="project-edit"
+ ),
+ path(
+ r'wirednote',
+ views.WiredNoteListView.as_view(),
+ {'status':None},
+ name="wirednote-list"
+ ),
+ path(
+ r'wirednote/create',
+ views.WiredNoteCreateView.as_view(),
+ name="wirednote-create"
+ ),
+ path(
+ r'wirednote/<str:status>',
+ views.WiredNoteListView.as_view(),
+ name="wirednote-list"
+ ),
+ path(
+ r'wirednote/<pk>/edit',
+ views.WiredNoteUpdateView.as_view(),
+ name="wirednote-edit"
+ ),
+
+ path(
+ r'post',
+ views.WiredPostListView.as_view(),
+ name="post-list"
+ ),
+ path(
+ r'post/new',
+ views.WiredPostNewView.as_view(),
+ name="post-create"
+ ),
+ path(
+ r'post/<pk>/edit',
+ views.WiredPostUpdateView.as_view(),
+ name="post-edit"
+ ),
+ path(
+ r'posts/todo',
+ views.WiredPostTodoView.as_view(),
+ name="post-todo"
+ ),
+ path(
+ r'<pk>/notes',
+ views.WiredPostNotesView.as_view(),
+ name="post-detail"
+ ),
+]