Commit 1c329606 authored by Cherish Magpayo's avatar Cherish Magpayo

Add url pattern for adding new announcement page

parent 09ce8e1c
......@@ -2,10 +2,14 @@ from django.urls import path
from django.conf.urls.static import static
from django.conf import settings
from . import views
from .views import IndexView
app_name = "announcements"
urlpatterns = [
path('', views.index, name='index'),
#announcements/1/details/
path('', IndexView.as_view(), name='index'),
# announcements/1/details/
path("<int:announcement_id>/details/", views.details, name="details"),
# announcements/add/
path("add/", views.add, name="add"),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
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