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
3875f635
Commit
3875f635
authored
Mar 16, 2021
by
James Esguerra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added function to render 'today' template
parent
c035ff0b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
2 deletions
+28
-2
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
-1
today.html
templates/today.html
+11
-0
No files found.
pages/__pycache__/urls.cpython-38.pyc
View file @
3875f635
No preview for this file type
pages/__pycache__/views.cpython-38.pyc
View file @
3875f635
No preview for this file type
pages/urls.py
View file @
3875f635
...
@@ -6,5 +6,6 @@ urlpatterns = [
...
@@ -6,5 +6,6 @@ urlpatterns = [
path
(
'home/'
,
views
.
ShowHome
,
name
=
'home'
),
path
(
'home/'
,
views
.
ShowHome
,
name
=
'home'
),
path
(
'profile/'
,
views
.
ShowProfile
,
name
=
'profile'
),
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'
)
path
(
'this_week/'
,
views
.
ShowThisWeek
,
name
=
'this_week'
),
path
(
'today/'
,
views
.
ShowToday
,
name
=
'today'
),
]
]
pages/views.py
View file @
3875f635
...
@@ -25,3 +25,7 @@ def ShowKey(request):
...
@@ -25,3 +25,7 @@ def ShowKey(request):
def
ShowThisWeek
(
request
):
def
ShowThisWeek
(
request
):
return
render
(
request
,
'this_week.html'
)
return
render
(
request
,
'this_week.html'
)
def
ShowToday
(
request
):
return
render
(
request
,
'today.html'
)
templates/this_week.html
View file @
3875f635
...
@@ -6,6 +6,16 @@
...
@@ -6,6 +6,16 @@
{% block content %}
{% block content %}
<p>
This is the this week page.
</p>
<h2>
03.15.MON - 03.21.SUN
</h2>
<p>
• 7AM water plants
</p>
<p>
• 8AM walk the dogs
</p>
<p>
- don't cram
</p>
<p>
○ 18 2:30PM Personal Counseling with Sir Marvin
</p>
<p>
○ 20 1PM DSC org meeting
</p>
<p>
- never hit up a random girl on twitter ever again
</p>
<p>
○ 21 7AM ACOMM org meeting
</p>
{% endblock %}
{% endblock %}
templates/today.html
0 → 100644
View file @
3875f635
{% extends 'base.html' %}
{% block title %} This Week {% endblock %}
{% block header %} This Week {% endblock %}
{% block content %}
<p>
This is the today 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