What is the preferred place to keep upload directory for a django project? I am pretty sure I shouldn’t keep it inside the project for production, because then I have to always remember to move it between projects, if I upload a new version of my project. Where should I keep it then? (I am talking about a linux machine).
Share
I keep it in my site-media directory, along with CSS, images and JavaScript, like this:
I then ignore the uploads directory in my version-control system, (you are using version control, right?).
Using this approach means your uploads can be served using whatever method you’re using to serve your media (I serve it straight from Apache, using a symlink).