Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
enricosuplico_reading
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
Enrico Lucio A. Suplico
enricosuplico_reading
Commits
b55227b2
Commit
b55227b2
authored
May 04, 2023
by
enricosuplico
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added urls.py
parent
8298c38f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
urls.py
bookshelf/urls.py
+5
-1
No files found.
bookshelf/urls.py
View file @
b55227b2
from
django.urls
import
path
from
.views
import
Homepage_View
,
Books_List_View
,
Books_Detail_View
,
Authors_List_View
,
Authors_Detail_View
from
.views
import
Homepage_View
,
Books_List_View
,
Books_Detail_View
,
Authors_List_View
,
Authors_Detail_View
,
Book_Create_View
,
Author_Create_View
,
Book_Update_View
,
Author_Update_View
urlpatterns
=
[
path
(
'home/'
,
Homepage_View
,
name
=
'home'
),
...
...
@@ -7,4 +7,8 @@ urlpatterns = [
path
(
'books/<int:pk>/details/'
,
Books_Detail_View
.
as_view
(),
name
=
'book-details'
),
path
(
'authors/'
,
Authors_List_View
.
as_view
(),
name
=
'authors-list'
),
path
(
'authors/<int:pk>/details/'
,
Authors_Detail_View
.
as_view
(),
name
=
'author-details'
),
path
(
'books/add/'
,
Book_Create_View
.
as_view
(),
name
=
'add-book'
),
path
(
'authors/add/'
,
Author_Create_View
.
as_view
(),
name
=
'add-author'
),
path
(
'books/<pk>/edit/'
,
Book_Update_View
.
as_view
(),
name
=
'edit-book'
),
path
(
'authors/<pk>/edit/'
,
Author_Update_View
.
as_view
(),
name
=
'edit-author'
),
]
\ 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