Skip to content
New Project

Django Hello World

Use Django on Vercel with Serverless Functions using the Python Runtime.

DeployView Demo

name: Django Hello World slug: django-hello-world description: Use Django on Vercel with Serverless Functions using the Python Runtime. framework: Python useCase: Starter deployUrl: https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fpython%2Fdjango&env=DJANGO_SECRET_KEY&envDescription=Secret%20key%20for%20Django%20cryptographic%20signing&demo-title=Django%20%2B%20Vercel&demo-description=Use%20Django%20on%20Vercel%20with%20Serverless%20Functions%20using%20the%20Python%20Runtime.&demo-url=https%3A%2F%2Fdjango-template.vercel.app%2F&demo-image=https://assets.vercel.com/image/upload/v1669994241/random/django.png demoUrl: https://django-template.vercel.app/

Django + Vercel

This example shows how to use Django on Vercel with Serverless Functions using the Python Runtime.

Demo

https://django-template.vercel.app/

Setting the Secret Key

Django requires a secret key for cryptographic signing to be set in the DJANGO_SECRET_KEY environment variable. This can be set in the web interface, or by running:

uv run python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())' | vercel env add -y DJANGO_SECRET_KEY prod

How it Works

Vercel detects Django's manage.py and uses that to find the WSGI entrypoint and the configuration for static files.

Running Locally

uv sync
uv run python manage.py runserver

Your Django application is now available at http://localhost:8000.

One-Click Deploy

Deploy the example using Vercel:

GitHub
Ownervercel
Repositoryexamples
LicenseView License
Use Cases
Starter
Stack
Python

Related Templates

eve Software Factory

Software factory built on eve: AI agents work each stage of the development loop, and people make the judgment calls.
eve Software Factory thumbnail

eve Sanity Copilot

Give your team a Sanity copilot in Slack. It runs GROQ, edits schemas, manages releases, and asks before it touches production.
eve Sanity Copilot thumbnail

eve Personal Agent

Fork your own personal agent. One identity across web, Slack, and iMessage, with memory you can import, edit, and approve.
eve Personal Agent thumbnail
DeployView Demo