[Answer]-Storing uploaded dynamic media in Django

1👍

The ‘correct’ way would be to have everything stored in MEDIA_ROOT, and each FileField could specify its own sub directory using the upload_to keyword argument.

The reason you would want everything stored in a single MEDIA_ROOT folder is so that configuring your web server to serve those files statically is simple- just one configuration directive to serve the entire folder (rather than having to configure serving files from multiple locations).

👤dgel

Leave a comment