---
title: "Deploy Django with Volume Support"
description: "Use Railway Volumes with Django"
category: "Starters"
url: https://railway.com/deploy/AWUIv6
---

# Deploy Django with Volume Support

Use Railway Volumes with Django

**[Deploy Django with Volume Support on Railway](https://railway.com/template/AWUIv6)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/AWUIv6/manifest.json

- **Creator:** Vin
- **Category:** Starters
- **Total deploys:** 190

## Template content

### django-volumes

- **Source:** railwayapp-templates/django-volume
- **Public domain:** Yes

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:latest

## Documentation

# Django with Volume Support Example

This example template starts a Django server utilizing volume support on Railway for storing and serving assets.

## ✨ Features

- Django
- Railway Volumes
- Python 3

## 💁‍♀️ How to use

- Clone locally and install packages with pip using `pip install -r requirements.txt`
- Run locally using `python manage.py migrate && python manage.py collectstatic --noinput && gunicorn mysite.wsgi`

## 📝 Troubleshooting
If you get the following error `No such file or directory: '/app/media/directory/...'` make sure your directory exists since your folder structure has to be build from scratch for production purpose on the persistent storage.

You can use something like this:

```python
new_directory = os.path.join(settings.MEDIA_ROOT, 'directory')
if not os.path.exists(new_directory):
  os.makedirs(new_directory)
```


## Similar templates

- [Openfront Gym](https://railway.com/deploy/openfront-gym) — Opensource Mindbody alternative based on Next.js and Keystone.js
- [open-excalidraw](https://railway.com/deploy/open-excalidraw) — Self-hostable collaborative drawing built on Excalidraw
- [Next.js + Prisma + PostgreSQL Starter](https://railway.com/deploy/nextjs-prisma-postgres) — Deploy a Next.js app with Prisma ORM and PostgreSQL in one click.

Open this page in a browser: https://railway.com/deploy/AWUIv6
