[Answered ]-How to serve image files from MongoDB in Django

1👍

You shouldn’t serve the files using Django, you need to set MEDIA_URL and makes it point to your web server e.g. NGINX and use
nginx-gridfs module to serve the file.

This apply to all types of storage, serving static files should not be done through Django, its the job of the web server.

Reference
Check the warning under "Storage" section

👤rayed

Leave a comment