isabelle
isabelle
RRailway
Created by isabelle on 10/9/2024 in #✋|help
Volumes and Django
apologies
94 replies
RRailway
Created by isabelle on 10/9/2024 in #✋|help
Volumes and Django
sorry i thought it was related to railway volumes. typically i would be able to find the answer in the documentation
94 replies
RRailway
Created by isabelle on 10/9/2024 in #✋|help
Volumes and Django
haha okay. look i'm a little confused there seems to be so little information on how to use this. what should the url look like?
94 replies
RRailway
Created by isabelle on 10/9/2024 in #✋|help
Volumes and Django
is it better to not use railway volumes?
94 replies
RRailway
Created by isabelle on 10/9/2024 in #✋|help
Volumes and Django
okay is it true that: Railway handles this by default for you, so you usually don’t need to configure Nginx or other web servers manually. (from chat gpt) meaning if i remove that part from urls.py railway will just sort it for me?
94 replies
RRailway
Created by isabelle on 10/9/2024 in #✋|help
Volumes and Django
but usually, for example if i was using google buckets, there would be information on how to serve it
94 replies
RRailway
Created by isabelle on 10/9/2024 in #✋|help
Volumes and Django
you said it looked fine here
94 replies
RRailway
Created by isabelle on 10/9/2024 in #✋|help
Volumes and Django
No description
94 replies
RRailway
Created by isabelle on 10/9/2024 in #✋|help
Volumes and Django
how can i do this? is there any more documentation on it
94 replies
RRailway
Created by isabelle on 10/9/2024 in #✋|help
Volumes and Django
No description
94 replies
RRailway
Created by isabelle on 10/9/2024 in #✋|help
Volumes and Django
i still haven't been able to get it to work. as far as i understnad the media_url is meant to be where i can find the files and i get "Page not found"
94 replies
RRailway
Created by isabelle on 10/9/2024 in #✋|help
Volumes and Django
okay
94 replies
RRailway
Created by isabelle on 10/9/2024 in #✋|help
Volumes and Django
Can you help me with the other part of my question please? Basically, can i push my local media folder to the volume? like with scp or something?
94 replies
RRailway
Created by isabelle on 10/9/2024 in #✋|help
Volumes and Django
BASE_DIR = Path(__file__).resolve().parent.parent
94 replies
RRailway
Created by isabelle on 10/9/2024 in #✋|help
Volumes and Django
also, changed it to the original code from the post and printed the MEDIA_ROOT and it gave '/media' is this right?
94 replies
RRailway
Created by isabelle on 10/9/2024 in #✋|help
Volumes and Django
i guess it is uploaded to the right volume but the website is not trying to pick it up from there? the url of the pic when i click on it is just 'media' not app/media
94 replies
RRailway
Created by isabelle on 10/9/2024 in #✋|help
Volumes and Django
yes actaully
94 replies
RRailway
Created by isabelle on 10/9/2024 in #✋|help
Volumes and Django
it doesn't work. it looks as though when you upload a photo it gets sent to the wrong place a folder that doesn't exist. are you sure /app/media doesn't need to be referenced?
94 replies
RRailway
Created by isabelle on 10/9/2024 in #✋|help
Volumes and Django
ive been trying different iterations of it
94 replies
RRailway
Created by isabelle on 10/9/2024 in #✋|help
Volumes and Django
MEDIA_ROOT = os.getenv("RAILWAY_VOLUME_MOUNT_PATH", os.path.join(BASE_DIR, "media"))


MEDIA_URL = "/media/"
MEDIA_ROOT = os.getenv("RAILWAY_VOLUME_MOUNT_PATH", os.path.join(BASE_DIR, "media"))


MEDIA_URL = "/media/"
94 replies