Hi, i’m trying to use
async/await on Django 3.1. I naively tryed to write a view like:
from django.http import HttpResponse import asyncio async def bar(request): await test_1() return HttpResponse("Fooooooooo") async def test_1(): print('Hello!!') await asyncio.sleep(5) print('Bye!!')
but i’m getting an exception:
'coroutine' object has no attribute 'get'
Could you please give me some hints where too look up? (links to docs, or files in the source code? (i cloned
master to see if i could find some glues, but still searching)