Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fausto_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
Brendan Fausto
fausto_reading
Commits
54404855
Commit
54404855
authored
Apr 27, 2023
by
Brendan Fausto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added URLS for bookcreateview and authorcreateview
parent
c5c3a554
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
urls.py
reading/bookshelf/urls.py
+3
-1
No files found.
reading/bookshelf/urls.py
View file @
54404855
# about/urls.py
# about/urls.py
from
django.urls
import
path
from
django.urls
import
path
from
.views
import
(
home_view
,
AuthorListView
,
BookListView
,
BookDetailView
,
AuthorDetailView
)
from
.views
import
(
home_view
,
AuthorListView
,
BookListView
,
BookDetailView
,
AuthorDetailView
,
BookCreateView
,
AuthorCreateView
)
urlpatterns
=
[
urlpatterns
=
[
path
(
'home'
,
home_view
,
name
=
'index'
),
path
(
'home'
,
home_view
,
name
=
'index'
),
...
@@ -9,6 +9,8 @@ urlpatterns = [
...
@@ -9,6 +9,8 @@ urlpatterns = [
path
(
'authors'
,
AuthorListView
.
as_view
(),
name
=
'author-list'
),
path
(
'authors'
,
AuthorListView
.
as_view
(),
name
=
'author-list'
),
path
(
'books/<int:pk>/details'
,
BookDetailView
.
as_view
(),
name
=
'books-details'
),
path
(
'books/<int:pk>/details'
,
BookDetailView
.
as_view
(),
name
=
'books-details'
),
path
(
'authors/<int:pk>/details'
,
AuthorDetailView
.
as_view
(),
name
=
'authors-details'
),
path
(
'authors/<int:pk>/details'
,
AuthorDetailView
.
as_view
(),
name
=
'authors-details'
),
path
(
'books/add'
,
BookCreateView
.
as_view
(),
name
=
'books-create'
),
path
(
'authors/add'
,
AuthorCreateView
.
as_view
(),
name
=
'authors-create'
),
]
]
app_name
=
"bookshelf"
# for proper namespacing in urls, otherwise will result in errors
app_name
=
"bookshelf"
# for proper namespacing in urls, otherwise will result in errors
\ 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