A simple Django app to serve protected media
Django Protected Media is a Django app that manages media that are considered sensitive in a protected fashion.
Not only does the media get stored in a separate filesystem location, but authorisation is also required to access it.
The application supports allows for setups where Django performs the authorisation, but hands off the serving of the file to a web server, like Nginx.
Add “protected_media” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'protected_media', ]
Include the URLconf in your project urls.py like this:
Add the following settings to settings.py: