Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.http import HttpResponse
- import datetime
- def hello(request):
- return HttpResponse("Hello world")
- def current_datetime(request):
- now = datetime.datetime.now()
- html = "<html><body>Sey4as %s.</body></html>" % now
- return HttpResponse(html)
Advertisement
Add Comment
Please, Sign In to add comment