Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions hello/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
from hello.forms import LogMessageForm
from hello.models import LogMessage

# def home(request):
# return render(request, 'hello/home.html')

class HomeListView(ListView):
"""Renders the home page, with a list of all polls."""
Expand All @@ -19,12 +17,18 @@ def get_context_data(self, **kwargs):
return context

def about(request):
"""Renders the about page."""
return render(request, "hello/about.html")

def contact(request):
"""Renders the contact page."""
return render(request, "hello/contact.html")

def hello_there(request, name):
"""Renders the hello_there page.
Args:
name: Name to say hello to
"""
return render(
request, "hello/hello_there.html", {"name": name, "date": datetime.now()}
)
Expand Down