Refactor home page view to use a template
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
from django.shortcuts import render
|
||||
from django.http import HttpResponse
|
||||
|
||||
# Create your views here.
|
||||
def home_page(request):
|
||||
return HttpResponse("<html><title>To-Do lists</title></html>")
|
||||
return render(request, "home.html")
|
||||
Reference in New Issue
Block a user