Commit f5f1c65f 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 f091d018
from django.urls import path
from .views import event_view, EventListView, EventDetailView, EventCreateView, EventUpdateView
from .views import EventListView, EventDetailView, EventCreateView, EventUpdateView
urlpatterns = [
path('', event_view, name='event'),
path('events/', EventListView.as_view(), name='event-list'),
path('', EventListView.as_view(), name='event-list'),
path('<int:pk>/details', EventDetailView.as_view(), name='event-details'),
path('add/', EventCreateView.as_view(), name='event-create'),
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