Files deleted after a while on Django Project
michael-lyon
FREEOP

a year ago

After saving a generated pdf to my model, after a while, i can no longer access the pdf it say
"application_23.pdf” does not exist.

Solved

10 Replies

a year ago

Are you storing your files in a volume? If not, the file is saved to persistent storage, which is not preserved between deployments


michael-lyon
FREEOP

a year ago

oh so after every deployment, the files are destroyed?


michael-lyon
FREEOP

a year ago

and please how how can i use volumes?


a year ago

Here are the docs, please take a read through and reach out if you have any further questions https://docs.railway.com/reference/volumes


michael-lyon
FREEOP

a year ago

Thank you
Let me read through and see how to use it


michael-lyon
FREEOP

a year ago

Please explain "Mount path of the volume"
i want to be careful with that and i don't need any configuration to link it to my django app?


michael-lyon
FREEOP

a year ago

Please explain "Mount path of the volume"
i want to be careful with that and i don't need any configuration to link it to my django app?


a year ago

The mount path is simply the folder that the volume captures. If the mount path is /images, for example. Anything that is saved within the /images directory is saved to the volume and is preserved between deployments


michael-lyon
FREEOP

a year ago

Thank you


a year ago

!s


Status changed to Solved adam about 1 year ago


Loading...