We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 993f1a9 + 5a0f995 commit 91712f7Copy full SHA for 91712f7
1 file changed
hello/views.py
@@ -6,8 +6,6 @@
6
from hello.forms import LogMessageForm
7
from hello.models import LogMessage
8
9
-# def home(request):
10
-# return render(request, 'hello/home.html')
11
12
class HomeListView(ListView):
13
"""Renders the home page, with a list of all polls."""
@@ -19,12 +17,18 @@ def get_context_data(self, **kwargs):
19
17
return context
20
18
21
def about(request):
+ """Renders the about page."""
22
return render(request, "hello/about.html")
23
24
def contact(request):
+ """Renders the contact page."""
25
return render(request, "hello/contact.html")
26
27
def hello_there(request, name):
28
+ """Renders the hello_there page.
29
+ Args:
30
+ name: Name to say hello to
31
+ """
32
return render(
33
request, "hello/hello_there.html", {"name": name, "date": datetime.now()}
34
)
0 commit comments