[Answer]-Django Media Upload Settings and File Structure

1👍

An easy way to do it would be to just change

MEDIA_ROOT = os.path.join(SITE_ROOT, 'media')

to

MEDIA_ROOT = os.path.join(SITE_ROOT, '..', 'media')

since SITE_ROOT is set to the directory where your settings.py file lives, which seems to be myproject/myproject.

Leave a comment