/django-private-files

Simple Django project showing how to have private static/media files

Primary LanguagePythonApache License 2.0Apache-2.0

django-private-files

Simple Django project showing how to have private static/media files

Running the project

Make sure you have Docker and docker-compose installed then run the project.

Starting the server

$ docker-compose build && docker-compose up

Creating a super user

After start the server then run the command:

$ docker-compose exec backend python manage.py createsuperuser

Private files

Files at app > frontend > static > private will be only available for logged user.

Django collect statics

$ docker-compose exec backend python manage.py collectstatic --no-input