|
|
@@ -7,11 +7,11 @@ from notes import views
|
|
|
APP_NAME = 'notes'
|
|
|
|
|
|
urlpatterns = [
|
|
|
- path('', views.Home.as_view(), name='home'),
|
|
|
- path('add/', views.NoteCreate.as_view(), name='add'),
|
|
|
- path('edit/<slug:slug>/', views.NoteUpdate.as_view(), name='edit'),
|
|
|
- path('note/<slug:slug>/', views.NoteDetail.as_view(), name='detail'),
|
|
|
- path('delete/<slug:slug>/', views.NoteDelete.as_view(), name='delete'),
|
|
|
- path('notes/', views.NotesList.as_view(), name='list'),
|
|
|
+ path('', views.ViewNoteHome.as_view(), name='home'),
|
|
|
+ path('add/', views.ViewNoteCreate.as_view(), name='add'),
|
|
|
+ path('edit/<slug:slug>/', views.ViewNoteUpdate.as_view(), name='edit'),
|
|
|
+ path('note/<slug:slug>/', views.ViewNoteDetail.as_view(), name='detail'),
|
|
|
+ path('delete/<slug:slug>/', views.ViewNoteDelete.as_view(), name='delete'),
|
|
|
+ path('notes/', views.ViewNotesList.as_view(), name='list'),
|
|
|
path('done/', views.ViewNoteSuccess.as_view(), name='success'),
|
|
|
]
|