This is a Django app that provides helpers for uploading static files.
It is based off of github.com/jezdez/django-staticfiles
but only uploads all the files in the collected STATIC_ROOT to S3 using
storages.backends.s3boto.S3BotoStorage storage backend in the
Use your favorite Python packaging tool to install
uploadstaticfrom PyPI, e.g.:
pip install django-uploadstatic
INSTALLED_APPS = [ # ... "uploadstatic", ]
STATIC_URLsetting to the URL that handles serving static files from S3:
STATIC_URL = "https://s3.amazonaws.com/some-domain/"
Once you are ready to upload all static files that have been collecte in your site's
STATIC_ROOT, use the
python manage.py uploadstatic
Then your files will be accessible from the