Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mavlee_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
Mavrick Jordan Lee
mavlee_reading
Commits
152d92f9
Commit
152d92f9
authored
Mar 28, 2023
by
Mavrick Jordan Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created home view of app. Created temporary book and author view to test link.
parent
4ebe1c9d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
1 deletion
+47
-1
authors.html
mavlee_reading/bookshelf/templates/bookshelf/authors.html
+6
-0
books.html
mavlee_reading/bookshelf/templates/bookshelf/books.html
+6
-0
home.html
mavlee_reading/bookshelf/templates/bookshelf/home.html
+9
-0
urls.py
mavlee_reading/bookshelf/urls.py
+9
-0
views.py
mavlee_reading/bookshelf/views.py
+15
-0
urls.py
mavlee_reading/mavlee_reading/urls.py
+2
-1
No files found.
mavlee_reading/bookshelf/templates/bookshelf/authors.html
0 → 100644
View file @
152d92f9
{% extends 'base.html' %}
{% block title %}My Favorite Authors{% endblock %}
{% block content %}
<h1>
{{name}}'s Favorite Authors:
</h1>
<p>
Mav like Japanese manga with authors that writes in a serious tone.
</p>
{% endblock %}
\ No newline at end of file
mavlee_reading/bookshelf/templates/bookshelf/books.html
0 → 100644
View file @
152d92f9
{% extends 'base.html' %}
{% block title %}My Favorite Books{% endblock %}
{% block content %}
<h1>
{{name}}'s Favorite Books:
</h1>
<p>
Mav like Japanese manga with authors that writes in a serious tone.
</p>
{% endblock %}
\ No newline at end of file
mavlee_reading/bookshelf/templates/bookshelf/home.html
0 → 100644
View file @
152d92f9
{% extends 'base.html' %}
{% block title %}My Favorite Books
&
Authors{% endblock %}
{% block content %}
<h1>
Welcome to {{name}}'s Database of Favorite Books and Authors!
</h1>
<p>
Mav like Japanese manga with authors that writes in a serious tone.
</p>
<a
href=
"{% url 'books' %}"
>
Books
</a>
&
nbsp
&
nbsp
&
nbsp
&
nbsp
&
nbsp
&
nbsp
&
nbsp
&
nbsp
<a
href=
"{% url 'authors' %}"
>
Authors
</a>
{% endblock %}
\ No newline at end of file
mavlee_reading/bookshelf/urls.py
0 → 100644
View file @
152d92f9
from
django.urls
import
path
from
.
import
views
urlpatterns
=
[
path
(
'home/'
,
views
.
home_view
,
name
=
"home"
),
path
(
'book/'
,
views
.
books_view
,
name
=
"books"
),
path
(
'authors/'
,
views
.
authors_view
,
name
=
"authors"
),
]
\ No newline at end of file
mavlee_reading/bookshelf/views.py
View file @
152d92f9
from
django.shortcuts
import
render
from
django.shortcuts
import
render
# Create your views here.
# Create your views here.
def
home_view
(
request
):
return
render
(
request
,
'bookshelf/home.html'
,
{
'name'
:
'Mav'
,
})
def
books_view
(
request
):
return
render
(
request
,
'bookshelf/books.html'
,
{
'name'
:
'Mav'
,
})
def
authors_view
(
request
):
return
render
(
request
,
'bookshelf/authors.html'
,
{
'name'
:
'Mav'
,
})
mavlee_reading/mavlee_reading/urls.py
View file @
152d92f9
...
@@ -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
path
,
include
urlpatterns
=
[
urlpatterns
=
[
path
(
''
,
include
(
'bookshelf.urls'
)),
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