Django modern (3.1+) ndhukung asynchronous views nggunakake Python async/await, memungkinkan penanganan I/O-bound operasi concurrent kanthi efisien (external API calls, async database access) tanpa blocking. Iki nambah Django model synchronous tradisional kanggo use case spesifik.
Async views
():
data = requests.get().json()
JsonResponse(data)
httpx
():
httpx.AsyncClient() client:
response = client.get()
JsonResponse(response.json())
