This page explains how to set up async views for your Django application on Sevalla.
Django supports async views even when running under WSGI servers like Gunicorn, but this setup doesn’t deliver the full performance benefits of asynchronous execution. To take full advantage of async views in Django, your application must be run with an ASGI server.Instead of Gunicorn, install an ASGI server like Granian and add it to your requirements.txt file.
Copy
Ask AI
pip install granianpip freeze > requirements.txt
Within Sevalla, update your start command to a custom one that uses Granian in Processes > Web process > Update process.