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
ca1d598f
Commit
ca1d598f
authored
Apr 13, 2023
by
Brendan Fausto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added links to templates, and final commit
parent
fa241b3a
Pipeline
#3133
failed with stages
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5 additions
and
3 deletions
+5
-3
views.cpython-311.pyc
reading/bookshelf/__pycache__/views.cpython-311.pyc
+0
-0
authors_details.html
reading/bookshelf/templates/bookshelf/authors_details.html
+1
-0
books_details.html
reading/bookshelf/templates/bookshelf/books_details.html
+1
-0
homepage.html
reading/bookshelf/templates/bookshelf/homepage.html
+2
-2
views.py
reading/bookshelf/views.py
+1
-1
db.sqlite3
reading/db.sqlite3
+0
-0
No files found.
reading/bookshelf/__pycache__/views.cpython-311.pyc
View file @
ca1d598f
No preview for this file type
reading/bookshelf/templates/bookshelf/authors_details.html
View file @
ca1d598f
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
<br>
<br>
<a
href =
"http://127.0.0.1:8000/"
>
Home
</a>
<a
href =
"http://127.0.0.1:8000/books"
>
Books
</a>
<a
href =
"http://127.0.0.1:8000/books"
>
Books
</a>
<a
href =
"http://127.0.0.1:8000/authors"
>
Authors
</a>
<a
href =
"http://127.0.0.1:8000/authors"
>
Authors
</a>
{% endblock %}
{% endblock %}
\ No newline at end of file
reading/bookshelf/templates/bookshelf/books_details.html
View file @
ca1d598f
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
</ul>
</ul>
<p>
<p>
<a
href =
"http://127.0.0.1:8000/"
>
Home
</a>
<a
href =
"http://127.0.0.1:8000/books"
>
Books
</a>
<a
href =
"http://127.0.0.1:8000/books"
>
Books
</a>
<a
href =
"http://127.0.0.1:8000/authors"
>
Authors
</a>
<a
href =
"http://127.0.0.1:8000/authors"
>
Authors
</a>
</p>
</p>
...
...
reading/bookshelf/templates/bookshelf/homepage.html
View file @
ca1d598f
...
@@ -5,11 +5,11 @@
...
@@ -5,11 +5,11 @@
{% endblock %}
{% endblock %}
{% block header %}
{% block header %}
Welcome to Brendan's favorite Books and Authors!
<h1>
Welcome to Brendan's favorite Books and Authors!
</h1>
{% endblock %}
{% endblock %}
{% block content %}
{% block content %}
<p>
I
don't really have a preference to genres
of books, so long as they are either insightful or entertaining to read.
</p>
<p>
I
enjoy a wide variety
of books, so long as they are either insightful or entertaining to read.
</p>
<br>
<br>
<p>
<p>
<a
href =
"http://127.0.0.1:8000/books"
>
Books
</a>
<a
href =
"http://127.0.0.1:8000/books"
>
Books
</a>
...
...
reading/bookshelf/views.py
View file @
ca1d598f
...
@@ -20,7 +20,7 @@ class AuthorListView(ListView):
...
@@ -20,7 +20,7 @@ class AuthorListView(ListView):
class
BookListView
(
ListView
):
class
BookListView
(
ListView
):
def
get
(
self
,
request
):
def
get
(
self
,
request
):
books
=
Books
.
objects
.
all
()
books
=
Books
.
objects
.
all
()
return
render
(
request
,
'bookshelf/books_page.html'
,
{
return
render
(
request
,
'bookshelf/books_page.html'
,
{
'books'
:
books
'books'
:
books
})
})
...
...
reading/db.sqlite3
View file @
ca1d598f
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