Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_aguandhischipmunks
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Adrian Lance Damalerio
midterm_aguandhischipmunks
Commits
a7b52a76
Commit
a7b52a76
authored
May 14, 2023
by
Agu Syquia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated urls.py
Added new paths to accommodate the new function and class based views.
parent
c87239b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
urls.py
widget_aguandhischipmunks/announcement_board/urls.py
+10
-2
No files found.
widget_aguandhischipmunks/announcement_board/urls.py
View file @
a7b52a76
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment