Are you searching for how you can write a VIEW in Django? We have shared below program to write a VIEW in Django.
from django.http import HttpResponse
now = datetime.datetime.now()
html = "<html><body>It is now %s</body></html> % now
Returns the current date and time, as an HTML document
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.