Hi,
I am a beginner. I have an API that serves the client with news posts. Each post has an image that is stored in the media folder. As I know, and it also worked a few days ago - the MEDIA_ROOT and MEDIA_URL should be configured in the settings file. This is what I did and it works well on localhost and not in production (404 not found).
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'
If someone can help figure this out I will be very happy :D. If you need me to provide more info about project configuration you are more than welcome to ask questions.