Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
trishamillena_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
Trisha Angel Millena
trishamillena_reading
Commits
515e23f9
Commit
515e23f9
authored
Apr 25, 2023
by
Trisha Angel Millena
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edited urls.py: Added path(authors/add/), Edited add-author.html
parent
a71efdd2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
10 deletions
+3
-10
add-author.html
...ena_reading/bookshelf/templates/bookshelf/add-author.html
+1
-9
urls.py
trishamillena_reading/bookshelf/urls.py
+2
-1
No files found.
trishamillena_reading/bookshelf/templates/bookshelf/add-author.html
View file @
515e23f9
...
...
@@ -5,16 +5,8 @@
{% block title %}Add New Author{% endblock %}
<form
method =
"POST"
>
{% csrf_token % }
{% for field in form%}
{% endform %}
{{ form.as_p }}
<input
type =
"submit"
value =
"Add Author"
/>
</form>
{% block content %}
{% endblock %}
trishamillena_reading/bookshelf/urls.py
View file @
515e23f9
from
django.urls
import
path
from
.views
import
(
home
,
BooksListView
,
BooksDetailView
,
AuthorListView
,
AuthorDetailView
,
BooksCreateView
)
from
.views
import
(
home
,
BooksListView
,
BooksDetailView
,
AuthorListView
,
AuthorDetailView
,
BooksCreateView
,
AuthorCreateView
)
urlpatterns
=
[
path
(
'home/'
,
home
,
name
=
'home'
),
...
...
@@ -9,6 +9,7 @@ urlpatterns = [
path
(
'authors/<int:pk>/details'
,
AuthorDetailView
.
as_view
(),
name
=
'author-details'
),
path
(
'books/add/'
,
BooksCreateView
.
as_view
(),
name
=
"add-book"
),
path
(
'authors/add/'
,
AuthorCreateView
.
as_view
(),
name
=
"add-author"
),
]
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