UNKNOWN
Project description
# django-s3-collectstatic
This package includes a management command `fasts3collectstatic` that is
intended for use with the S3BotoStorage storage backend. When checking if a
file already exists it uses the S3 etag for comparison instead of the default
modified time. This is especially useful when deploying to Heroku, since Heroku
changes the modified time when deploying.
The code is based on [this Django snippet](http://djangosnippets.org/snippets/2889/)
with some fixes and packaging.
## Installation
Clone the [Git repository](https://github.com/agoodid/django-s3-collectstatic)
or use pip to install:
pip install git+git://github.com/AGoodId/django-s3-collectstatic.git#egg=django-s3-collectstatic
In `settings.py`:
STATICFILES_STORAGE ="storages.backends.s3boto.S3BotoStorage"
AWS_PRELOAD_METADATA = True
INSTALLED_APPS = [
# ...
'django_s3_collectstatic',
]
This package includes a management command `fasts3collectstatic` that is
intended for use with the S3BotoStorage storage backend. When checking if a
file already exists it uses the S3 etag for comparison instead of the default
modified time. This is especially useful when deploying to Heroku, since Heroku
changes the modified time when deploying.
The code is based on [this Django snippet](http://djangosnippets.org/snippets/2889/)
with some fixes and packaging.
## Installation
Clone the [Git repository](https://github.com/agoodid/django-s3-collectstatic)
or use pip to install:
pip install git+git://github.com/AGoodId/django-s3-collectstatic.git#egg=django-s3-collectstatic
In `settings.py`:
STATICFILES_STORAGE ="storages.backends.s3boto.S3BotoStorage"
AWS_PRELOAD_METADATA = True
INSTALLED_APPS = [
# ...
'django_s3_collectstatic',
]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-s3-collectstatic-1.0.tar.gz
.
File metadata
- Download URL: django-s3-collectstatic-1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cddbc299a250ef59090b8e1be076fd2543fedf9e847812baf99ffd29995b54e |
|
MD5 | fefbaecc449c73120f3c3dd7189307dd |
|
BLAKE2b-256 | af566325210b78dbea2e4fa2c2b3736edf4678e0381a945ae70870d745f7bdda |