Framework guides
Django
Deploy Django, then add object storage, caching, async views, Celery, health checks and multitenancy.
FastAPI
Deploy FastAPI with SQLModel and Alembic, then add object storage, caching, Celery and health checks.
Flask
Deploy Flask with an application factory, then add caching, Celery and health checks.
How Python applications run on Sevalla
See Processes for every process type and its settings.
Connection variables
When you add an internal connection and turn on Add environment variables to the application, Sevalla adds these variables (see Environment variables an internal connection adds). You can rename them in the same sheet before you save, for exampleDB_URL to DATABASE_URL.
Two schemes need care in Python:
- SQLAlchemy (and so SQLModel, Flask-SQLAlchemy-Lite and Alembic) doesn’t accept
postgres://. Replace it withpostgresql+psycopg://in code. Django’s database URL parsers accept it as is. - redis-py, Celery and Django’s Redis cache accept
redis://,rediss://andunix://only. With a Valkey database, replacevalkey://withredis://.