Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Use Django on Vercel with Serverless Functions using the Python Runtime.
Django Hello World is a starter template that deploys a Django application on Vercel as Serverless Functions using the Python Runtime.
Django Hello World is a minimal Django starter from Vercel's examples repository. It takes a standard Django project with a manage.py file and configures it to run on Vercel's serverless infrastructure, producing a deployed web application at a public URL. It runs on Vercel using the Python Runtime and is maintained by Vercel as part of the vercel/examples collection.
manage.py to locate the WSGI entrypoint and static file configuration.DJANGO_SECRET_KEY environment variable.uv sync and uv run python manage.py runserver to serve the app at localhost:8000.DJANGO_SECRET_KEY for cryptographic signing; a command is provided to generate one.Vercel detects the presence of manage.py in the project and uses that to find the WSGI entrypoint and static file configuration. When a request arrives, Vercel invokes the Django application as a Python serverless function. For local development, the template uses uv sync to install dependencies and uv run python manage.py runserver to start Django at http://localhost:8000.
No. The template relies on Vercel's automatic detection of manage.py to configure the serverless function, so no separate vercel.json is included in the source.
Django uses a secret key for cryptographic signing of cookies and other data. Vercel requires you to set this as an environment variable during deployment; the template provides a one-line command to generate a random key for production.
The template is a minimal starter, but you can replicate its structure. Since Vercel detects manage.py, any standard Django project with a WSGI entrypoint should deploy in a similar way.
