Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
migs_atienza_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
Migs Atienza
migs_atienza_reading
Commits
3dc59fda
Commit
3dc59fda
authored
Apr 10, 2023
by
Migs Atienza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created base.html + Started on home.html
parent
367e8a1c
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
32 additions
and
3 deletions
+32
-3
urls.cpython-39.pyc
...atienza_reading/bookshelf/__pycache__/urls.cpython-39.pyc
+0
-0
views.cpython-39.pyc
...tienza_reading/bookshelf/__pycache__/views.cpython-39.pyc
+0
-0
home.html
migs_atienza_reading/bookshelf/templates/home.html
+11
-0
urls.py
migs_atienza_reading/bookshelf/urls.py
+2
-1
views.py
migs_atienza_reading/bookshelf/views.py
+4
-1
settings.cpython-39.pyc
.../migs_atienza_reading/__pycache__/settings.cpython-39.pyc
+0
-0
settings.py
migs_atienza_reading/migs_atienza_reading/settings.py
+1
-1
base.html
migs_atienza_reading/templates/base.html
+14
-0
No files found.
migs_atienza_reading/bookshelf/__pycache__/urls.cpython-39.pyc
View file @
3dc59fda
No preview for this file type
migs_atienza_reading/bookshelf/__pycache__/views.cpython-39.pyc
View file @
3dc59fda
No preview for this file type
migs_atienza_reading/bookshelf/templates/home.html
0 → 100644
View file @
3dc59fda
{% extends 'base.html' %}
{% block title %}My Favorite Books
&
Authors{% endblock %}
{% block heading %}Welcome to Migs' Database of Favorite Books
&
Authors!{% endblock %}
{% block content %}The books listed here consist of story-driven, action adventure titles with
interesting characters. While I haven't been reading recently, the database is made up of books I enjoyed
a while back. An author I enjoy here would be Rick Riordan and his Percy Jackson series as I was
immersed with the fantasy world he made which utilized Greek myths and stories.{% endblock %}
<div>
<a
href=
"/books"
>
Books
</a>
<a
href=
"/authors"
>
Authors
</a>
</div>
migs_atienza_reading/bookshelf/urls.py
View file @
3dc59fda
from
django.urls
import
path
from
django.urls
import
path
from
.views
import
index
from
.views
import
index
,
home_view
urlpatterns
=
[
urlpatterns
=
[
path
(
''
,
index
,
name
=
'index'
),
path
(
''
,
index
,
name
=
'index'
),
path
(
'home'
,
home_view
,
name
=
'home_view'
)
]
]
app_name
=
"<bookshelf>"
app_name
=
"<bookshelf>"
...
...
migs_atienza_reading/bookshelf/views.py
View file @
3dc59fda
...
@@ -3,5 +3,8 @@ from django.shortcuts import render
...
@@ -3,5 +3,8 @@ from django.shortcuts import render
from
django.http
import
HttpResponse
from
django.http
import
HttpResponse
def
index
(
request
):
def
index
(
request
):
return
HttpResponse
(
'Hello World! This came from the index view'
)
return
request
(
'Hello World! This came from the index view'
)
def
home_view
(
request
):
return
render
(
request
,
'home.html'
)
# Create your views here.
# Create your views here.
migs_atienza_reading/migs_atienza_reading/__pycache__/settings.cpython-39.pyc
View file @
3dc59fda
No preview for this file type
migs_atienza_reading/migs_atienza_reading/settings.py
View file @
3dc59fda
...
@@ -58,7 +58,7 @@ ROOT_URLCONF = 'migs_atienza_reading.urls'
...
@@ -58,7 +58,7 @@ ROOT_URLCONF = 'migs_atienza_reading.urls'
TEMPLATES
=
[
TEMPLATES
=
[
{
{
'BACKEND'
:
'django.template.backends.django.DjangoTemplates'
,
'BACKEND'
:
'django.template.backends.django.DjangoTemplates'
,
'DIRS'
:
[],
'DIRS'
:
[
os
.
path
.
join
(
BASE_DIR
,
'templates'
)
],
'APP_DIRS'
:
True
,
'APP_DIRS'
:
True
,
'OPTIONS'
:
{
'OPTIONS'
:
{
'context_processors'
:
[
'context_processors'
:
[
...
...
migs_atienza_reading/templates/base.html
0 → 100644
View file @
3dc59fda
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
{% block title %}{% endblock %}
</title>
<h1>
{% block heading %}{% endblock %}
</h1>
</head>
<body>
<div
id=
"content"
>
{% block content %}{% endblock %}
</div>
{% block scripts %}{% endblock %}
</body>
</html>
\ 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