---
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)**

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

## 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

- [Paperless-ngx](https://railway.com/deploy/paperless-ngx-3) — Document management with OCR on Railway with PostgreSQL and Redis
- [open-excalidraw](https://railway.com/deploy/open-excalidraw) — Self-hostable collaborative drawing built on Excalidraw
- [caring-vibrancy](https://railway.com/deploy/caring-vibrancy) — Deploy and Host caring-vibrancy with Railway

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