Difference between revisions of "Using a template."

From MyWiki
Jump to: navigation, search
Line 1: Line 1:
Starting with the hello app on line 3 make a modification to the default route:
+
Starting with the hello app on line 3 make a modification to the default route in the views.py file:
 
Replace <source lang="python">
 
Replace <source lang="python">
 
def index(request):
 
def index(request):
 
     return HttpResponse("Hello!") </source>
 
     return HttpResponse("Hello!") </source>
 +
with
 +
<source lang="python">
 +
 +
</source>

Revision as of 10:50, 19 March 2021

Starting with the hello app on line 3 make a modification to the default route in the views.py file:

Replace
def index(request):
    return HttpResponse("Hello!")

with