I'm not sure you're talking about the same thing, this is about asyncio/green threads.
async def current_datetime(request):
now = datetime.datetime.now()
html = '<html><body>It is now %s.</body></html>' % now
return HttpResponse(html)
seems like an example that I was thinking of.