Does anyone have some links to good guides on getting asnyc to work with Django? I have a use case where I really need to have a view give an async response but I can't get even the most basic of examples working.
async def test_view(request):
return HttpResponse("Hello, async Django!")
I've installed uvicorn and am running it with uvicorn my_project.asgi:application --reload
My sync views work as expected but the async one just returns an error of "The view sample.views.test_view didn't return an HttpResponse object. It returned an unawaited coroutine instead. You may need to add an 'await' into your view."