Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
janang_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
Jan Ericsson Ong Ang
janang_reading
Commits
ad633e94
Commit
ad633e94
authored
Mar 28, 2023
by
Jan Ericsson Ong Ang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
created template folders and base.html
parent
f02fe3b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
views.py
janang_reading/bookshelf/views.py
+11
-2
No files found.
janang_reading/bookshelf/views.py
View file @
ad633e94
from
django.shortcuts
import
render
from
django.http
import
HttpResponse
from
.models
import
Author
,
Books
from
django.views
import
View
# Create your views here.
def
bookshelfIndex
(
request
):
title
=
'Landing Page Stuff<br><br>'
output_view
=
""
+
Author
+
" wrote "
+
Books
+
"!"
return
HttpResponse
(
title
+
output_view
)
def
new_view
(
request
):
spotlightBook
=
Books
.
objects
.
all
()
return
HttpResponse
(
title
+
output_view
)
\ No newline at end of file
class
HomepageView
(
View
):
def
get
(
request
):
return
render
(
request
,
'bookshelf/'
)
\ No newline at end of file
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