Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fausto_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
Brendan Fausto
fausto_reading
Commits
22db9d6c
Commit
22db9d6c
authored
Apr 12, 2023
by
Brendan Fausto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed naming error on template and typo in urls
parent
eba77f89
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
21 additions
and
3 deletions
+21
-3
urls.cpython-311.pyc
reading/bookshelf/__pycache__/urls.cpython-311.pyc
+0
-0
authors_page.html
reading/bookshelf/templates/bookshelf/authors_page.html
+0
-0
base.html
reading/bookshelf/templates/bookshelf/base.html
+0
-0
books_page.html
reading/bookshelf/templates/bookshelf/books_page.html
+0
-0
homepage.html
reading/bookshelf/templates/bookshelf/homepage.html
+14
-0
urls.py
reading/bookshelf/urls.py
+1
-1
views.py
reading/bookshelf/views.py
+4
-1
urls.cpython-311.pyc
reading/reading/__pycache__/urls.cpython-311.pyc
+0
-0
urls.py
reading/reading/urls.py
+2
-1
No files found.
reading/bookshelf/__pycache__/urls.cpython-311.pyc
0 → 100644
View file @
22db9d6c
File added
reading/bookshelf/templates/authors_page.html
→
reading/bookshelf/templates/
bookshelf/
authors_page.html
View file @
22db9d6c
File moved
reading/bookshelf/templates/base.html
→
reading/bookshelf/templates/b
ookshelf/b
ase.html
View file @
22db9d6c
File moved
reading/bookshelf/templates/books_page.html
→
reading/bookshelf/templates/books
helf/books
_page.html
View file @
22db9d6c
File moved
reading/bookshelf/templates/homepage.html
→
reading/bookshelf/templates/
bookshelf/
homepage.html
View file @
22db9d6c
...
...
@@ -7,5 +7,8 @@
{% block content %}
Test blurb about books and their genres, as well as the authors behind the books here
<p>
Test blurb about books and their genres, as well as the authors behind the books here
</p>
<br>
<a
href =
"http://127.0.0.1:8000/bookshelf/books"
>
Books
</a>
<a
href =
"http://127.0.0.1:8000/bookshelf/authors"
>
Authors
</a>
{% endblock %}
\ No newline at end of file
reading/bookshelf/urls.py
View file @
22db9d6c
...
...
@@ -4,7 +4,7 @@ from django.urls import path
from
.views
import
index
,
HomePageView
urlpatterns
=
[
path
(
'home'
,
Home
PageView
.
as_view
()
,
name
=
'index'
),
path
(
'home'
,
Home
pageView
,
name
=
'index'
),
]
app_name
=
"bookshelf"
# for proper namespacing in urls, otherwise will result in errors
\ No newline at end of file
reading/bookshelf/views.py
View file @
22db9d6c
...
...
@@ -6,6 +6,9 @@ from django.views.generic.list import ListView
from
.models
import
Books
,
Authors
class
HomepageView
(
request
):
return
render
(
request
,
'homepage.html'
,
{
'page_title'
:
'Books and Authors'
})
return
render
(
request
,
'bookshelf/homepage.html'
,
{
'page_title'
:
'Books and Authors'
})
# Create your views here.
reading/reading/__pycache__/urls.cpython-311.pyc
View file @
22db9d6c
No preview for this file type
reading/reading/urls.py
View file @
22db9d6c
...
...
@@ -14,8 +14,9 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from
django.contrib
import
admin
from
django.urls
import
path
from
django.urls
import
include
,
path
urlpatterns
=
[
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
'bookshelf/'
,
include
(
'bookshelf.urls'
,
namespace
=
"bookshelf"
)),
]
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