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
b098bc0c
Commit
b098bc0c
authored
Apr 12, 2023
by
Brendan Fausto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed more errors in urls and views
parent
22db9d6c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
urls.cpython-311.pyc
reading/bookshelf/__pycache__/urls.cpython-311.pyc
+0
-0
urls.py
reading/bookshelf/urls.py
+2
-2
views.py
reading/bookshelf/views.py
+1
-1
No files found.
reading/bookshelf/__pycache__/urls.cpython-311.pyc
View file @
b098bc0c
No preview for this file type
reading/bookshelf/urls.py
View file @
b098bc0c
# about/urls.py
# about/urls.py
from
django.urls
import
path
from
django.urls
import
path
from
.views
import
index
,
HomePageV
iew
from
.views
import
index
,
home_v
iew
urlpatterns
=
[
urlpatterns
=
[
path
(
'home'
,
HomepageV
iew
,
name
=
'index'
),
path
(
'home'
,
home_v
iew
,
name
=
'index'
),
]
]
app_name
=
"bookshelf"
# for proper namespacing in urls, otherwise will result in errors
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 @
b098bc0c
...
@@ -5,7 +5,7 @@ from django.views.generic.list import ListView
...
@@ -5,7 +5,7 @@ from django.views.generic.list import ListView
from
.models
import
Books
,
Authors
from
.models
import
Books
,
Authors
class
HomepageV
iew
(
request
):
class
home_v
iew
(
request
):
return
render
(
request
,
'bookshelf/homepage.html'
,
{
return
render
(
request
,
'bookshelf/homepage.html'
,
{
'page_title'
:
'Books and Authors'
'page_title'
:
'Books and Authors'
})
})
...
...
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