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

Added STATICFILES_STORAGE to fix ValueError #51

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ cache-busting, split chunks.

## Quick reference:

Add `manifest_loader` to your `INSTALLED_APPS` and:

```
STATICFILES_STORAGE = 'manifest_loader.storage.DjangoManifestLoaderStorage'
```


### Manifest tag

```djangotemplate
Expand Down
8 changes: 8 additions & 0 deletions manifest_loader/storage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from django.contrib.staticfiles.storage import ManifestStaticFilesStorage


class DjangoManifestLoaderStorage(ManifestStaticFilesStorage):
"""
If a file isn’t found in the staticfiles.json manifest at runtime, don't raise an exception
"""
manifest_strict = False