Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S3Boto3Storage as a staticfiles storage #951

Closed
WhyNotHugo opened this issue Nov 9, 2020 · 1 comment
Closed

S3Boto3Storage as a staticfiles storage #951

WhyNotHugo opened this issue Nov 9, 2020 · 1 comment

Comments

@WhyNotHugo
Copy link
Contributor

Using storages.backends.s3boto3.S3Boto3Storage as a staticfiles storage work fine, however, it breaks with DEBUG=True, since it generates URLs for the storage. One would need to run collectstatic after every file-save, and this takes a couple of minute (which ends up being the opposite of a live reload).

In the past, I've worked around this by using a different storage when DEBUG=True, but this just leads to other issues due to inconsistent settings.

I'm wondering if anyone has worked on a S3Boto3StaticfilesStorage storage, which uses STATIC_URL in development, and does the usual on production.

@jschneier
Copy link
Owner

To fix issues that have come up around url() I added a new staticfiles storage in #968. That could be extended with any new hooks or parameters that are needed.

@jschneier jschneier closed this as not planned Won't fix, can't repro, duplicate, stale Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants