Django
Host a Django app with Postgres
Django and its database deploy together: gunicorn in one container, Postgres in another, each with its own volume, on a private network only your app can see.
Paste this into your coding agent
no key · no account
Run curl -s https://vibecodedhost.com/deploy.md and follow its instructions to deploy this project.
Works in Claude Code, Codex, Cursor and anything else that can run a shell command.
The files
What your agent writes.
You do not have to write any of this. It is here so you can see how little there is, and check your agent's work if a deploy goes wrong.
With this manifest the app would be live at https://my-django-app.vibecodedhost.app. The name is yours to choose, as long as no other app has it.
{
"version": 1,
"name": "my-django-app",
"containers": [
{
"name": "db",
"image": "postgres:16-alpine",
"port": 5432,
"env": {
"POSTGRES_USER": "app",
"POSTGRES_PASSWORD": "app",
"POSTGRES_DB": "app"
},
"volume": "/var/lib/postgresql/data",
"memoryMb": 384
},
{
"name": "web",
"build": {
"context": ".",
"dockerfile": "Dockerfile"
},
"port": 8000,
"public": true,
"env": {
"DATABASE_URL": "postgres://app:app@db:5432/app",
"ALLOWED_HOSTS": "my-django-app.vibecodedhost.app",
"CSRF_TRUSTED_ORIGINS": "https://my-django-app.vibecodedhost.app"
},
"volume": "/app/media",
"healthPath": "/"
}
]
}FROM python:3.12-slim
ENV PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt gunicorn whitenoise
COPY . .
RUN python manage.py collectstatic --noinput
EXPOSE 8000
CMD ["sh", "-c", "python manage.py migrate --noinput && gunicorn --bind 0.0.0.0:8000 mysite.wsgi"]Worth knowing
Django on Vibe Hosting
ALLOWED_HOSTS and CSRF_TRUSTED_ORIGINS
Serve static files with WhiteNoise
Migrate on start
Give Postgres its share of memory
Questions
Before you deploy.
Can I create a superuser?
Yes. Have your agent add a start-up step that creates one from environment variables if none exists, or use Django's createsuperuser --noinput with DJANGO_SUPERUSER_* variables.
Is the database reachable from the internet?
No. Only containers marked public get an address. Postgres is reachable from your app's other containers and from nowhere else.
Built something else? Next.js, Node.js and Express, FastAPI, Flask, React and Vite, Apps with Postgres, Apps with SQLite, Docker Compose projects.
Deploy from
Use the agent you already have.
- Claude CodeTerminal, IDE and desktopDeploy from Claude Code →
- CodexTerminal, IDE and cloudDeploy from Codex →
- CursorEditorDeploy from Cursor →
- OpenCodeTerminalDeploy from OpenCode →
- Gemini CLITerminalDeploy from Gemini CLI →
- GitHub CopilotEditor and terminalDeploy from GitHub Copilot →
- WindsurfEditorDeploy from Windsurf →
- ClineEditor extensionDeploy from Cline →
Your app could be online in a few minutes.
Copy the sentence, paste it into your agent, and read the address it gives you back. No account, no card, nothing to pay.
Paste this into your coding agent
no key · no account
Run curl -s https://vibecodedhost.com/deploy.md and follow its instructions to deploy this project.
Works in Claude Code, Codex, Cursor and anything else that can run a shell command.
Would you rather hold the key yourself?
Questions first, or stuck? Contact support and a person replies as soon as possible.