Async
async def async_view(request): async with aiohttp.ClientSession() as session: async with session.get('http://api.example.com/data') as response: data = await response.json() return JsonResponse(data)
# urls.pypath('async-data/', async_view)