Django view not returning JSON response when using async def and HttpResponse
I've searched everywhere and can't find a clear answer. I'm running into an scenario where my Django view doesn't return a JSON response as expected when I use `async def`. I'm on Django 3.2, and I have the following code in my view: ```python from django.http import JsonResponse from django.views import View class MyAsyncView(View): async def get(self, request): data = {'key': 'value'} return JsonResponse(data) ``` When I hit this endpoint, I receive the following behavior: ``` TypeError: 'coroutine' object is not subscriptable ``` I've tried replacing `JsonResponse` with `HttpResponse` to see if it makes any difference, but I still get no JSON output, just an empty response. Iām also not sure if I need to do anything special to handle the async nature of this view. I've ensured that my Django settings have `ASGI` configured properly, and my `urls.py` looks like this: ```python from django.urls import path from .views import MyAsyncView urlpatterns = [ path('my-async-endpoint/', MyAsyncView.as_view()), ] ``` Has anyone encountered this scenario? What should I do to successfully return a JSON response from an async view in Django? I recently upgraded to Python stable. Am I approaching this the right way?