Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
calvincruz_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
Calvin Josh Cruz
calvincruz_reading
Commits
64188981
Commit
64188981
authored
Mar 29, 2023
by
karin-kurusu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created "Homepage" through "home.html" and modifying "urls.py" and "views.py"
parent
e63b8a7b
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
39 additions
and
1 deletion
+39
-1
urls.cpython-310.pyc
...incruz_reading/bookshelf/__pycache__/urls.cpython-310.pyc
+0
-0
views.cpython-310.pyc
...ncruz_reading/bookshelf/__pycache__/views.cpython-310.pyc
+0
-0
home.html
calvincruz_reading/bookshelf/templates/home.html
+25
-0
urls.py
calvincruz_reading/bookshelf/urls.py
+8
-0
views.py
calvincruz_reading/bookshelf/views.py
+4
-0
urls.cpython-310.pyc
...ading/calvincruz_reading/__pycache__/urls.cpython-310.pyc
+0
-0
urls.py
calvincruz_reading/calvincruz_reading/urls.py
+2
-1
No files found.
calvincruz_reading/bookshelf/__pycache__/urls.cpython-310.pyc
View file @
64188981
No preview for this file type
calvincruz_reading/bookshelf/__pycache__/views.cpython-310.pyc
View file @
64188981
No preview for this file type
calvincruz_reading/bookshelf/templates/home.html
0 → 100644
View file @
64188981
{% extends 'base.html' %}
{% load static %}
{% block title %}My Favorite Books
&
Authors{% endblock %}
{% block content %}
<h2>
Welcome to {{name}}'s Database of Favorite Books and Authors!
</h2>
<p>
I'm going to be honest, it's been a really, really long time since I've actually read
<br>
any books, as all I've been reading is manga, so that's what this list pretty much consists of.
<br>
While I don't really have trouble reading just text, my attention span and interest really does
<br>
get much higher when I'm reading graphic novels like manga, hence why I enjoy reading them.
</p>
{% endblock %}
{% block navbar %}
<ul
class=
"navbarList"
>
<li
class=
"navbarItem"
><a
href=
"/books"
>
Books
</a></li>
<li
class=
"navBarItem"
><a
href=
"/authors"
>
Authors
</a></li>
</ul>
{% endblock %}
\ No newline at end of file
calvincruz_reading/bookshelf/urls.py
0 → 100644
View file @
64188981
from
django.urls
import
path
from
.views
import
home
urlpatterns
=
[
path
(
'home/'
,
home
,
name
=
'home'
),
]
app_name
=
"bookshelf"
\ No newline at end of file
calvincruz_reading/bookshelf/views.py
View file @
64188981
from
django.shortcuts
import
render
from
django.shortcuts
import
render
from
.models
import
Author
,
Books
def
home
(
request
):
return
render
(
request
,
'home.html'
,
{
'name'
:
'Calvin'
})
# Create your views here.
# Create your views here.
calvincruz_reading/calvincruz_reading/__pycache__/urls.cpython-310.pyc
View file @
64188981
No preview for this file type
calvincruz_reading/calvincruz_reading/urls.py
View file @
64188981
...
@@ -14,8 +14,9 @@ Including another URLconf
...
@@ -14,8 +14,9 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
"""
from
django.contrib
import
admin
from
django.contrib
import
admin
from
django.urls
import
path
from
django.urls
import
include
,
path
urlpatterns
=
[
urlpatterns
=
[
path
(
''
,
include
(
'bookshelf.urls'
,
namespace
=
"bookshelf"
)),
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
'admin/'
,
admin
.
site
.
urls
),
]
]
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