Skip to main content
# 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',
]

Metadata

Release files for django-s3-collectstatic 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-s3-collectstatic 1.0
File Size Uploaded Provenance Actions
django-s3-collectstatic-1.0.tar.gz 3.2 kB Without provenance Details for django-s3-collectstatic-1.0.tar.gz

Release files / django-s3-collectstatic-1.0.tar.gz

Download URL django-s3-collectstatic-1.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0cddbc299a250ef59090b8e1be076fd2543fedf9e847812baf99ffd29995b54e
BLAKE2b-256 checksum
How to use checksums
af566325210b78dbea2e4fa2c2b3736edf4678e0381a945ae70870d745f7bdda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-s3-collectstatic 1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page