Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
luigirodriguez_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
Neal Luigi D. Rodriguez
luigirodriguez_reading
Commits
9067f927
Commit
9067f927
authored
Apr 25, 2023
by
Neal Luigi D. Rodriguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add author has been created
parent
7c7800c1
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
4 deletions
+6
-4
urls.cpython-39.pyc
...driguez_reading/bookshelf/__pycache__/urls.cpython-39.pyc
+0
-0
views.cpython-39.pyc
...riguez_reading/bookshelf/__pycache__/views.cpython-39.pyc
+0
-0
add-author.html
...uez_reading/bookshelf/templates/bookshelf/add-author.html
+4
-3
home.html
...rodriguez_reading/bookshelf/templates/bookshelf/home.html
+1
-0
urls.py
luigirodriguez_reading/bookshelf/urls.py
+1
-1
db.sqlite3
luigirodriguez_reading/db.sqlite3
+0
-0
No files found.
luigirodriguez_reading/bookshelf/__pycache__/urls.cpython-39.pyc
View file @
9067f927
No preview for this file type
luigirodriguez_reading/bookshelf/__pycache__/views.cpython-39.pyc
View file @
9067f927
No preview for this file type
luigirodriguez_reading/bookshelf/templates/bookshelf/add-author.html
View file @
9067f927
...
@@ -2,9 +2,10 @@
...
@@ -2,9 +2,10 @@
{% load static %}
{% load static %}
{% block title %} Add New Author {% endblock %}
{% block title %} Add New Author {% endblock %}
{% block content %}
{% block content %}
<h1>
Add New Author
</h1>
<form
action=
""
method=
"post"
>
<form
action=
""
method=
"post"
>
{% csrf
token %}
{% csrf_
token %}
{{ form }}
{{ form }}
<input
type=
"submit"
value=
"Submit
"
>
<input
type=
"submit"
value=
"Add Author
"
>
</form>
</form>
{% endblock %}
{% endblock %}
\ No newline at end of file
luigirodriguez_reading/bookshelf/templates/bookshelf/home.html
View file @
9067f927
...
@@ -12,4 +12,5 @@
...
@@ -12,4 +12,5 @@
</p>
</p>
<br>
<br>
<p><a
href=
"http://127.0.0.1:8000/bookshelf/books"
>
Books
</a>
<a
href=
"http://127.0.0.1:8000/bookshelf/authors"
>
Authors
</a>
</p>
<p><a
href=
"http://127.0.0.1:8000/bookshelf/books"
>
Books
</a>
<a
href=
"http://127.0.0.1:8000/bookshelf/authors"
>
Authors
</a>
</p>
<p><a
href=
"http://127.0.0.1:8000/bookshelf/authors/add/"
>
Add Author
</a></p>
{% endblock %}
{% endblock %}
\ No newline at end of file
luigirodriguez_reading/bookshelf/urls.py
View file @
9067f927
...
@@ -12,7 +12,7 @@ urlpatterns = [
...
@@ -12,7 +12,7 @@ urlpatterns = [
path
(
'books/<int:pk>/details/'
,
BooksDetailView
.
as_view
(),
name
=
'books-detail'
),
path
(
'books/<int:pk>/details/'
,
BooksDetailView
.
as_view
(),
name
=
'books-detail'
),
path
(
'authors'
,
AuthorsListView
.
as_view
(),
name
=
'authors-list'
),
path
(
'authors'
,
AuthorsListView
.
as_view
(),
name
=
'authors-list'
),
path
(
'authors/<pk>/details/'
,
AuthorsDetailView
.
as_view
(),
name
=
'authors-detail'
),
path
(
'authors/<pk>/details/'
,
AuthorsDetailView
.
as_view
(),
name
=
'authors-detail'
),
path
(
'authors/add/'
,
AuthorsCreateView
,
name
=
'authors-add'
),
path
(
'authors/add/'
,
AuthorsCreateView
.
as_view
()
,
name
=
'authors-add'
),
path
(
'authors/<pk>/edit/'
,
AuthorsUpdateView
,
name
=
'authors-edit'
)
path
(
'authors/<pk>/edit/'
,
AuthorsUpdateView
,
name
=
'authors-edit'
)
]
]
...
...
luigirodriguez_reading/db.sqlite3
View file @
9067f927
No preview for this file type
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