Python
Updated on October 27, 2026
Python
The presence of requirements.txt, pyproject.toml, or Pipfile triggers Python detection. Python 3.12 is used by default.
FastAPI
# main.py
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def root():
return {"message": "Hello Webgune"}
# requirements.txt
fastapi
uvicorn[standard]
Start command (set it if the auto builder doesn't detect it):
uvicorn main:app --host 0.0.0.0 --port $PORT
Django
DATABASE_URL=postgresql://user:pass@host:5432/db
DJANGO_SECRET_KEY=change-moi
DJANGO_ALLOWED_HOSTS=votre-domaine.webgune.dev
python manage.py migrate
gunicorn monprojet.wsgi:application --bind 0.0.0.0:$PORT
Flask
gunicorn app:app --bind 0.0.0.0:$PORT --workers 2
Whatever the framework, don't use the development server (
flask run,manage.py runserver) in production. Prefer Gunicorn or Uvicorn, which are more robust under load.