Commit b096622d authored by Michael Lopez's avatar Michael Lopez

added two news paths for announcement add and edit in urls.py

parent 8b41b926
...@@ -4,6 +4,8 @@ from .views import * ...@@ -4,6 +4,8 @@ from .views import *
urlpatterns = [ urlpatterns = [
path('', pageview, name='pageview'), path('', pageview, name='pageview'),
path('<int:pk>/details/', AnnouncementDetailView.as_view(), name="announcement_details"), path('<int:pk>/details/', AnnouncementDetailView.as_view(), name="announcement_details"),
path('add/', AnnouncementCreateView.as_view(), name='announcement_add'),
path('<int:pk>/edit', AnnouncementEditView.as_view(), name='announcement_edit'),
] ]
app_name = "announcements" app_name = "announcements"
\ 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