Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
agusyquia_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
Agu Syquia
agusyquia_reading
Commits
dce36ff1
Commit
dce36ff1
authored
Apr 25, 2023
by
Agu Syquia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated urls.py
Added paths to authors/add, books/add, authors/pk/add, and authors/pk/edit.
parent
0ce15583
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
urls.py
agusyquia_reading/bookshelf/urls.py
+8
-1
No files found.
agusyquia_reading/bookshelf/urls.py
View file @
dce36ff1
...
...
@@ -2,7 +2,10 @@ from django.urls import path
from
.
import
views
from
.views
import
(
BooksView
,
BooksDetailsView
,
AuthorsView
,
AuthorsDetailsView
AuthorsView
,
AuthorsDetailsView
,
BooksCreateView
,
BooksUpdateView
,
AuthorsCreateView
,
AuthorsUpdateView
)
urlpatterns
=
[
...
...
@@ -11,6 +14,10 @@ urlpatterns = [
path
(
'books/<int:pk>/details'
,
BooksDetailsView
.
as_view
(),
name
=
'book-details'
),
path
(
'authors/'
,
AuthorsView
.
as_view
(),
name
=
'authors-list'
),
path
(
'authors/<int:pk>/details'
,
AuthorsDetailsView
.
as_view
(),
name
=
'author-details'
),
path
(
'books/add/'
,
BooksCreateView
.
as_view
(),
name
=
'add-book'
),
path
(
'books/<int:pk>/details/edit/'
,
BooksUpdateView
.
as_view
(),
name
=
'books-edit'
),
path
(
'authors/add/'
,
AuthorsCreateView
.
as_view
(),
name
=
'add-author'
),
path
(
'authors/<int:pk>/details/edit/'
,
AuthorsUpdateView
.
as_view
(),
name
=
'books-edit'
),
]
app_name
=
"bookshelf"
\ 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