Code: Select all
def home(request):
data = {"msg": "Hello"}
result = print(data) # Problematic line
return render(request, "index.html", result) # why render? Is there any other way?
Code: Select all
def home(request):
data = {"msg": "Hello"}
result = print(data) # Problematic line
return render(request, "index.html", result) # why render? Is there any other way?