#27541: Provide hooks to override manifest file storage in ManifestFilesMixin
-----------------------------------------+------------------------
Reporter: lopopolo | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 1.10
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
My use case is that I would like to run collectstatic and store static
assets in S3. However, I would like to store staticfiles.json locally so I
can bake it into my deployment artifact.
It seems the only way to do this right now is to create a custom mixin
[https://github.com/klis87/django-cloudinary-
storage/blob/711af26702645dc42f2a3e59d69e37e690def0bf/cloudinary_storage/storage.py#L199
like this one] and override read_manifest and save_manifest to use a
custom storage.
It seems the current behavior can be retained by using a FileSystemStorage
with location = settings.STATIC_ROOT (aka self). Can we add a
manifest_storage as an overridable property?
--
Ticket URL: <https://code.djangoproject.com/ticket/27541>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.3a7612f720fc0f11ca234fc69276a624%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.