django-s3-collectstatic
pypi i django-s3-collectstatic

django-s3-collectstatic

UNKNOWN

by AGoodId

1.0 (see all)License:MIT
pypi i django-s3-collectstatic
Readme

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 with some fixes and packaging.

Installation

Clone the Git repository 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',
]

GitHub Stars

26

LAST COMMIT

9yrs ago

MAINTAINERS

1

CONTRIBUTORS

2

OPEN ISSUES

2

OPEN PRs

0
VersionTagPublished
1.0
8yrs ago
No alternatives found
No tutorials found
Add a tutorial