Simple Django project showing how to have private static/media files
Make sure you have Docker and docker-compose installed then run the project.
$ docker-compose build && docker-compose up
After start the server then run the command:
$ docker-compose exec backend python manage.py createsuperuser
Files at app > frontend > static > private
will be only available for logged user.
$ docker-compose exec backend python manage.py collectstatic --no-input