Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

views django

from django.http import HttpResponse
import datetime

def current_datetime(request):
    now = datetime.datetime.now()
    html = "<html><body>It is now %s.</body></html>" % now
    return HttpResponse(html)
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #views #django
ADD COMMENT
Topic
Name
7+7 =