isabelle
Volumes and Django
Hi there! I am a little stuck on something probably quite simple. It is my first Django deployment. My files locally live in a folder called /media/ that I do not include in the repo (it is in .gitignore). Now it is time to put in prod and I made a volume on Railway (path: '/media').
Two problems:
1. How can I copy my old media files over?
2. I tried to manually upload new files and it doesn't seem to be working, I'm guessing my path is wrong?
Here is what my settings looks like:
MEDIA_ROOT = os.path.join(BASE_DIR, "media")
MEDIA_URL = "/media/"
It's a bit urgent so if you know the answer and can help it would be soooo appreciated 🙂 Thanks!
94 replies