Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
ianaragoza_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
Ian Rafael T. Aragoza
ianaragoza_reading
Commits
b254b554
Commit
b254b554
authored
Mar 27, 2023
by
Ian Rafael T. Aragoza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed template names to fit with specifications.
parent
d14289a0
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
5 additions
and
1 deletion
+5
-1
urls.cpython-311.pyc
...ragoza_reading/bookshelf/__pycache__/urls.cpython-311.pyc
+0
-0
views.cpython-311.pyc
...agoza_reading/bookshelf/__pycache__/views.cpython-311.pyc
+0
-0
author_details.html
...reading/bookshelf/templates/bookshelf/author_details.html
+0
-0
authors.html
...ragoza_reading/bookshelf/templates/bookshelf/authors.html
+0
-0
book_detais.html
...za_reading/bookshelf/templates/bookshelf/book_detais.html
+0
-0
books.html
ianaragoza_reading/bookshelf/templates/bookshelf/books.html
+0
-0
urls.py
ianaragoza_reading/bookshelf/urls.py
+1
-1
views.py
ianaragoza_reading/bookshelf/views.py
+4
-0
No files found.
ianaragoza_reading/bookshelf/__pycache__/urls.cpython-311.pyc
View file @
b254b554
No preview for this file type
ianaragoza_reading/bookshelf/__pycache__/views.cpython-311.pyc
View file @
b254b554
No preview for this file type
ianaragoza_reading/bookshelf/templates/bookshelf/author_detail.html
→
ianaragoza_reading/bookshelf/templates/bookshelf/author_detail
s
.html
View file @
b254b554
File moved
ianaragoza_reading/bookshelf/templates/bookshelf/author
_list
.html
→
ianaragoza_reading/bookshelf/templates/bookshelf/author
s
.html
View file @
b254b554
File moved
ianaragoza_reading/bookshelf/templates/bookshelf/book_detai
l
.html
→
ianaragoza_reading/bookshelf/templates/bookshelf/book_detai
s
.html
View file @
b254b554
File moved
ianaragoza_reading/bookshelf/templates/bookshelf/book
_list
.html
→
ianaragoza_reading/bookshelf/templates/bookshelf/book
s
.html
View file @
b254b554
File moved
ianaragoza_reading/bookshelf/urls.py
View file @
b254b554
...
@@ -7,7 +7,7 @@ urlpatterns = [
...
@@ -7,7 +7,7 @@ urlpatterns = [
path
(
'home/'
,
home
,
name
=
'home'
),
path
(
'home/'
,
home
,
name
=
'home'
),
path
(
'authors/'
,
AuthorsView
.
as_view
(),
name
=
'author-list'
),
path
(
'authors/'
,
AuthorsView
.
as_view
(),
name
=
'author-list'
),
path
(
'authors/<int:pk>/details/'
,
AuthorDetailsView
.
as_view
(),
name
=
'author-detail'
),
path
(
'authors/<int:pk>/details/'
,
AuthorDetailsView
.
as_view
(),
name
=
'author-detail'
),
path
(
'books/'
,
BooksView
.
as_view
(),
name
=
'books
-list
'
),
path
(
'books/'
,
BooksView
.
as_view
(),
name
=
'books'
),
path
(
'books/<int:pk>/details/'
,
BookDetailsView
.
as_view
(),
name
=
'books-detail'
),
path
(
'books/<int:pk>/details/'
,
BookDetailsView
.
as_view
(),
name
=
'books-detail'
),
]
]
...
...
ianaragoza_reading/bookshelf/views.py
View file @
b254b554
...
@@ -13,15 +13,19 @@ def home(request):
...
@@ -13,15 +13,19 @@ def home(request):
class
BooksView
(
ListView
):
class
BooksView
(
ListView
):
model
=
Book
model
=
Book
template_name
=
"bookshelf/books.html"
class
BookDetailsView
(
DetailView
):
class
BookDetailsView
(
DetailView
):
model
=
Book
model
=
Book
template_name
=
"bookshelf/book_detais.html"
class
AuthorsView
(
ListView
):
class
AuthorsView
(
ListView
):
model
=
Author
model
=
Author
template_name
=
"bookshelf/authors.html"
class
AuthorDetailsView
(
DetailView
):
class
AuthorDetailsView
(
DetailView
):
model
=
Author
model
=
Author
template_name
=
"bookshelf/author_details.html"
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