A Django app that provides helpers for uploading static files.
Project description
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 the storages.backends.s3boto.S3BotoStorage storage backend in the django-storages app.
Installation
Use your favorite Python packaging tool to install uploadstatic from PyPI, e.g.:
pip install django-uploadstatic
Added "uploadstatic" to your INSTALLED_APPS setting:
INSTALLED_APPS = [ # ... "uploadstatic", ]
Set your STATIC_URL setting 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 uploadstatic management command:
python manage.py uploadstatic
Then your files will be accessible from the STATIC_URL setting.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for django-uploadstatic-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaa864a3eb84c41c069de34ae18211b74446c32e16e685bb1f1d3fde11ee5d29 |
|
MD5 | 7587e667be08cde96a5fab71444678fa |
|
BLAKE2b-256 | e68fb88713dac3d661a4a1fad0b842b866e32dff6faf1ce6e59b703150e3961e |