Alex is working on his first Django project. By now, he created a view function to return a HttpResponse object with a welcoming message. Somehow, his code got mixed up really. Help him rearrange the lines.
HTTP Response Object
Don't mix my view
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
message.write("<p>Feel free to explore all the pages!</p>")
message.write("<p>Welcome to my website!</p>")
message = HttpResponse()
def welcome(request):
from django.http import HttpResponse
return message
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.