Skip to content

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

License

Notifications You must be signed in to change notification settings

lfvilella/django-private-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published