Skip to content
Closed
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