Commit bcf01fff authored by Jan Ericsson Ong Ang's avatar Jan Ericsson Ong Ang

updated names and fixed url paths

parent 09d5779c
...@@ -3,9 +3,9 @@ from . import views ...@@ -3,9 +3,9 @@ from . import views
# url for calendar # url for calendar
urlpatterns = [ urlpatterns = [
path('', views.calendar_view, name='calendar'), path('', views.calendar_view, name='calendar_app'),
path('events/add/', views.EventAddListView.as_view(), name="event-add"), path('events/<int:pk>/details', views.EventDetailView.as_view(), name='event_details'),
path('events/<int:pk>/details/', views.EventDetailView.as_view(), name='event-details'), path('events/add', views.EventAddListView.as_view(), name="new_event"),
path('events/<int:pk>/edit/', views.EventEditView.as_view(), name='event-edit'), path('events/<int:pk>/edit', views.EventEditView.as_view(), name='update_event'),
] ]
app_name = "calendar" app_name = "calendar_app"
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment