Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
esguerra_lab1
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
James Esguerra
esguerra_lab1
Commits
c035ff0b
Commit
c035ff0b
authored
Mar 16, 2021
by
James Esguerra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added function to render 'this_week' template
parent
576f6251
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
1 deletion
+17
-1
urls.cpython-38.pyc
pages/__pycache__/urls.cpython-38.pyc
+0
-0
views.cpython-38.pyc
pages/__pycache__/views.cpython-38.pyc
+0
-0
urls.py
pages/urls.py
+2
-1
views.py
pages/views.py
+4
-0
this_week.html
templates/this_week.html
+11
-0
No files found.
pages/__pycache__/urls.cpython-38.pyc
View file @
c035ff0b
No preview for this file type
pages/__pycache__/views.cpython-38.pyc
View file @
c035ff0b
No preview for this file type
pages/urls.py
View file @
c035ff0b
...
...
@@ -5,5 +5,6 @@ from . import views
urlpatterns
=
[
path
(
'home/'
,
views
.
ShowHome
,
name
=
'home'
),
path
(
'profile/'
,
views
.
ShowProfile
,
name
=
'profile'
),
path
(
'key/'
,
views
.
ShowKey
,
name
=
'key'
)
path
(
'key/'
,
views
.
ShowKey
,
name
=
'key'
),
path
(
'this_week/'
,
views
.
ShowThisWeek
,
name
=
'this_week'
)
]
pages/views.py
View file @
c035ff0b
...
...
@@ -21,3 +21,7 @@ def ShowProfile(request):
def
ShowKey
(
request
):
return
render
(
request
,
'key.html'
)
def
ShowThisWeek
(
request
):
return
render
(
request
,
'this_week.html'
)
templates/this_week.html
0 → 100644
View file @
c035ff0b
{% extends 'base.html' %}
{% block title %} This Week {% endblock %}
{% block header %} This Week {% endblock %}
{% block content %}
<p>
This is the this week page.
</p>
{% endblock %}
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