Commit 652b49cc authored by Ciella Francisco's avatar Ciella Francisco 😵

Modified the URLs by removing the FBV class and replacing the event homepage...

Modified the URLs by removing the FBV class and replacing the event homepage to the list view of the events
parent 67abdece
from django.urls import path from django.urls import path
from .views import event_view, EventListView, EventDetailView, EventCreateView, EventUpdateView from .views import EventListView, EventDetailView, EventCreateView, EventUpdateView
urlpatterns = [ urlpatterns = [
path('', event_view, name='event'), path('', EventListView.as_view(), name='event-list'),
path('events/', EventListView.as_view(), name='event-list'),
path('<int:pk>/details', EventDetailView.as_view(), name='event-details'), path('<int:pk>/details', EventDetailView.as_view(), name='event-details'),
path('add/', EventCreateView.as_view(), name='event-create'), path('add/', EventCreateView.as_view(), name='event-create'),
path('<int:pk>/update', EventUpdateView.as_view(), name='event-update'), path('<int:pk>/update', EventUpdateView.as_view(), name='event-update'),
......
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