Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nishaespera_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
Julia Anishka
nishaespera_reading
Commits
0eafd77f
Commit
0eafd77f
authored
Mar 27, 2023
by
Julia Anishka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixedd home format
parent
0a3547f4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
3 deletions
+8
-3
books.html
nishaespera_reading/bookshelf/templates/bookshelf/books.html
+0
-0
home.html
nishaespera_reading/bookshelf/templates/bookshelf/home.html
+1
-1
urls.py
nishaespera_reading/bookshelf/urls.py
+3
-2
views.py
nishaespera_reading/bookshelf/views.py
+4
-0
No files found.
nishaespera_reading/bookshelf/templates/bookshelf/books.html
0 → 100644
View file @
0eafd77f
nishaespera_reading/bookshelf/templates/bookshelf/home.html
View file @
0eafd77f
{% extends 'base.html' %}
{% block title %} My Favorite Books
&
Authors {% endblock %}
{% block body %}
<h1>
My Favorite Books
&
Authors
</h1>
<h3><center>
Welcome to Nisha's Database of
<br>
Favorite Books and Authors!
</center></h3>
<p>
The genres I usually enjoy include mystery, romance, and fantasy. From narratives
that revolve around crimes to supernatural elements in a fictional world, I find each
...
...
nishaespera_reading/bookshelf/urls.py
View file @
0eafd77f
from
django.urls
import
path
from
.
import
views
from
.views
import
BooksListView
urlpatterns
=
[
path
(
'home'
,
views
.
homepage_view
,
name
=
'home'
)
path
(
'books'
,
Books
View
.
as_view
(),
name
=
'books
'
)
path
(
'home'
,
views
.
homepage_view
,
name
=
'home'
)
,
path
(
'books'
,
Books
ListView
.
as_view
(),
name
=
'books-list
'
)
]
...
...
nishaespera_reading/bookshelf/views.py
View file @
0eafd77f
from
django.shortcuts
import
render
from
django.http
import
HttpResponse
from
django.views
import
View
from
django.views.generic.list
import
ListView
from
django.views.generic.detail
import
DetailView
from
.models
import
Author
,
Books
...
...
@@ -13,3 +15,5 @@ def homepage_view(request):
}
return
render
(
request
,
'home.html'
,
context
)
class
BooksListView
(
ListView
):
model
=
Books
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