Guest User

Untitled

a guest
Jul 26th, 2012
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. from django.http import HttpResponse
  2. import datetime
  3.  
  4. def hello(request):
  5. return HttpResponse("Hello world")
  6.  
  7. def current_datetime(request):
  8. now = datetime.datetime.now()
  9. html = "<html><body>Sey4as %s.</body></html>" % now
  10. return HttpResponse(html)
Advertisement
Add Comment
Please, Sign In to add comment