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

edited urls.py

parent bd235cfd
......@@ -12,7 +12,9 @@
<button type="button" onclick="window.location.href='/calendar/events/add/'">
<a >New Activity</a>
</button><br>
</button>
<br>
<br>
<a href="dashboard/">Dashboard</a><br>
<a href="announcements/">Announcements</a><br>
......
......@@ -4,8 +4,8 @@ from . import views
# url for calendar
urlpatterns = [
path('', views.calendar_view, name='calendar'),
path('add/', views.EventAddListView.as_view(), name="event-add"),
path('<int:pk>/details/', views.EventDetailView.as_view(), name='event-details'),
path('<int:pk>/edit/', views.EventEditView.as_view(), name='event-edit'),
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>/edit/', views.EventEditView.as_view(), name='event-edit'),
]
app_name = "calendar"
\ 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