Correct way to use async class based views in Django
问题 I am trying to use the very new Django 3.1 Async view classes. Based on the limited documentation available, I have tried to create my own async def __call__() method. From the documents: For a class-based view, this means making its __call__() method an async def (not its __init__() or as_view() ). Django 3.1 Development Documents However, until now I have had no luck with writing an asynchronous class based view. I constantly get await exceptions, or asyncio.iscoroutinefunction returns