Rhendril
0
Q:

cannot import name 'httpresponse' from 'django.http'

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)
-2

New to Communities?

Join the community