Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
danimuncal_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
Izaac Daniel B. Muncal
danimuncal_reading
Commits
c6288ec5
Commit
c6288ec5
authored
Mar 28, 2023
by
Izaac Daniel B. Muncal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Placing contents in home and book htmls
parent
3500650f
Pipeline
#3060
canceled with stages
Changes
9
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
28 additions
and
46 deletions
+28
-46
models.cpython-39.pyc
...uncal_reading/bookshelf/__pycache__/models.cpython-39.pyc
+0
-0
urls.cpython-39.pyc
danimuncal_reading/bookshelf/__pycache__/urls.cpython-39.pyc
+0
-0
views.cpython-39.pyc
...muncal_reading/bookshelf/__pycache__/views.cpython-39.pyc
+0
-0
models.py
danimuncal_reading/bookshelf/models.py
+1
-1
author.html
danimuncal_reading/bookshelf/templates/author.html
+5
-9
author_detail.html
danimuncal_reading/bookshelf/templates/author_detail.html
+5
-9
books_detail.html
danimuncal_reading/bookshelf/templates/books_detail.html
+5
-9
views.py
danimuncal_reading/bookshelf/views.py
+12
-18
settings.cpython-39.pyc
...ng/danimuncal_reading/__pycache__/settings.cpython-39.pyc
+0
-0
No files found.
danimuncal_reading/bookshelf/__pycache__/models.cpython-39.pyc
View file @
c6288ec5
No preview for this file type
danimuncal_reading/bookshelf/__pycache__/urls.cpython-39.pyc
View file @
c6288ec5
No preview for this file type
danimuncal_reading/bookshelf/__pycache__/views.cpython-39.pyc
View file @
c6288ec5
No preview for this file type
danimuncal_reading/bookshelf/models.py
View file @
c6288ec5
...
...
@@ -19,4 +19,4 @@ class Books(models.Model):
blurb
=
models
.
TextField
(
max_length
=
200
)
def
__str__
(
self
):
return
"{}"
.
format
(
self
.
title
)
\ No newline at end of file
return
"{}"
.
format
(
self
.
title
)
danimuncal_reading/bookshelf/templates/author.html
View file @
c6288ec5
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
Title
</title>
</head>
<body>
{% extends 'base.html' %}
{% load static %}
</body>
</html>
\ No newline at end of file
{% block title %}{% endblock %}
{% block header %} header {% endblock %}
{% block body %} body {% endblock %}
danimuncal_reading/bookshelf/templates/author_detail.html
View file @
c6288ec5
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
Title
</title>
</head>
<body>
{% extends 'base.html' %}
{% load static %}
</body>
</html>
\ No newline at end of file
{% block title %}{% endblock %}
{% block header %} header {% endblock %}
{% block body %} body {% endblock %}
\ No newline at end of file
danimuncal_reading/bookshelf/templates/books_detail.html
View file @
c6288ec5
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
Title
</title>
</head>
<body>
{% extends 'base.html' %}
{% load static %}
</body>
</html>
\ No newline at end of file
{% block title %}{% endblock %}
{% block header %} header {% endblock %}
{% block body %} body {% endblock %}
\ No newline at end of file
danimuncal_reading/bookshelf/views.py
View file @
c6288ec5
from
django.shortcuts
import
render
from
django.views
import
View
from
django.http
import
render
from
django.views.generic.detail
import
DetailView
from
django.views.generic.list
import
ListView
from
.models
import
Books
,
Author
def
home_view
(
request
):
return
render
(
request
,
'bookshelf/home.html'
,
{})
class
HomeView
(
View
):
def
get
(
self
,
request
):
return
render
(
request
,
'bookshelf/home.html'
,
{})
class
BooksView
(
ListView
):
model
=
Books
class
BooksView
(
View
):
def
get
(
self
,
request
):
return
render
(
request
,
'bookshelf/books.html'
,
{})
class
BooksDetailView
(
DetailView
):
model
=
Books
class
BooksDetailView
(
View
):
def
get
(
self
,
request
):
return
render
(
request
,
'bookshelf/books_detail.html'
,
{})
class
AuthorView
(
ListView
):
model
=
Author
class
AuthorView
(
View
):
def
get
(
self
,
request
):
return
render
(
request
,
'bookshelf/author.html'
,
{})
class
AuthorDetailView
(
View
):
def
get
(
self
,
request
):
return
render
(
request
,
'bookshelf/author_details.html'
,
{})
\ No newline at end of file
class
AuthorDetailView
(
DetailView
):
model
=
Author
\ No newline at end of file
danimuncal_reading/danimuncal_reading/__pycache__/settings.cpython-39.pyc
View file @
c6288ec5
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