Commit a19e6918 authored by James Esguerra's avatar James Esguerra

Added date filter to 'today' template

parent 3875f635
import datetime
from django.shortcuts import render
from django.http import HttpResponse
from .forms import HomeForm
......@@ -28,4 +29,5 @@ def ShowThisWeek(request):
def ShowToday(request):
my_date = datetime.datetime.now()
return render(request, 'today.html')
......@@ -6,6 +6,8 @@
{% block content %}
<h2>{{ my_date|date:"m.d.D" }}</h2>
<p>This is the today page.</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