Commit 576f6251 authored by James Esguerra's avatar James Esguerra

Added function to render 'key' template

parent f995d5a7
......@@ -4,5 +4,6 @@ from . import views
urlpatterns = [
path('home/', views.ShowHome, name='home'),
path('profile/', views.ShowProfile, name='profile')
path('profile/', views.ShowProfile, name='profile'),
path('key/', views.ShowKey, name='key')
]
......@@ -17,3 +17,7 @@ def ShowHome(request):
def ShowProfile(request):
return render(request, 'profile.html', {'name': name})
def ShowKey(request):
return render(request, 'key.html')
......@@ -14,19 +14,19 @@
<br>
<div id='navbar'>
<div>
<a href='/home'> Home </a>
<a href='/home'>Home</a>
</div>
<div>
<a href='/profile'> Profile </a>
<a href='/profile'>Profile</a>
</div>
<div>
<a href='/key'> Key </a>
<a href='/key'>Key</a>
</div>
<div>
<a href='/this_week'> This Week </a>
<a href='/this_week'>This Week</a>
</div>
<div>
<a href='/today'> Today </a>
<a href='/today'>Today</a>
</div>
</div>
</header>
......
......@@ -6,6 +6,6 @@
{% block content %}
<h1> Hello, {{ name }}! Today is going to be a great day! </h1>
<h1>Hello, {{ name }}! Today is going to be a great day!</h1>
{% endblock %}
{% extends 'base.html' %}
{% block title %} Key {% endblock %}
{% block header %} Key {% endblock %}
{% block content %}
<p>• Tasks: things to do </p>
<p>- Notes: things you don't want to forget</p>
<p>○ Events: noteworth moments in time</p>
<br>
<p>• Task incomplete</p>
<p>X Task complete</p>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment