File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 6
6
from hello .forms import LogMessageForm
7
7
from hello .models import LogMessage
8
8
9
- # def home(request):
10
- # return render(request, 'hello/home.html')
11
9
12
10
class HomeListView (ListView ):
13
11
"""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
19
def about (request ):
20
+ """Renders the about page."""
22
21
return render (request , "hello/about.html" )
23
22
24
23
def contact (request ):
24
+ """Renders the contact page."""
25
25
return render (request , "hello/contact.html" )
26
26
27
27
def hello_there (request , name ):
28
+ """Renders the hello_there page.
29
+ Args:
30
+ name: Name to say hello to
31
+ """
28
32
return render (
29
33
request , "hello/hello_there.html" , {"name" : name , "date" : datetime .now ()}
30
34
)
You can’t perform that action at this time.
0 commit comments