Commit a7b52a76 authored by Agu Syquia's avatar Agu Syquia

Updated urls.py

Added new paths to accommodate the new function and class based views.
parent c87239b0
from django.urls import path from django.urls import path
from .import views from .import views
from .views import (
AnnouncementsDetailsView,
AnnouncementsEditView,
AnnouncementsAddView,
)
# url for announcement # url for announcement_board
urlpatterns = [ urlpatterns = [
path("", views.announcement_boardIndex, name = "announcement_boardIndex") path('', views.announcements_view, name='announcements'),
path('add', views.AnnouncementsAddView.as_view(), name='announcement_add'),
path('<int:pk>/details', views.AnnouncementsDetailsView.as_view(), name='announcement_details'),
path('<int:pk>/edit', views.AnnouncementsEditView.as_view(), name='announcement_edit'),
] ]
app_name = "announcement_board" app_name = "announcement_board"
\ 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