- 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)
SHARE
TWEET
Untitled
a guest
Jul 26th, 2012
14
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data

