Serve protected media files with django
问题 I'd like Django to serve some media files (e.g. user-uploaded files) only for logged-in users. Since my site is quite low-traffic, I think I will keep things simple and do not use django-sendfile to tell Nginx when to serve a file. Instead I'll let Django/Gunicorn do the job. To me this seems a lot simpler and for a low traffic site this maybe more secure. But what is the best way to organize the file storage location? Media files are all stored below MEDIA_ROOT and this directory is served