Skip to content

silvioar/django-volumes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Volumes

Django Volume Template for Railway

This template is a great starter if you are looking to use Railway Volumes with your Django project for user uploaded media files. It takes all the complexity out of configuring your project for serving files.

No more help channel because you can't get volumes to work!

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:

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

Deploy

Deploy on Railway

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published