https://github.com/timonweb/django-forgiving-collectstatic
https://github.com/timonweb/django-forgiving-collectstatic
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/timonweb/django-forgiving-collectstatic
- Owner: timonweb
- License: mit
- Created: 2019-01-29T09:06:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-29T09:23:13.000Z (over 7 years ago)
- Last Synced: 2024-04-29T10:22:23.217Z (over 2 years ago)
- Language: Python
- Size: 1.95 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
# django-forgiving-collectstatic
An extension of the `django.contrib.staticfiles.storage.ManifestStaticFilesStorage` that skips missing files and assets during the `python manage.py collectstatic` command run.
Based on the tutorial I wrote on my blog [Make Django's collectstatic command forgiving](https://timonweb.com/tutorials/make-djangos-collectstatic-command-forgiving/).
## Installation
Use pip:
```shell
pip install django-forgiving-collectstatic
```
## Usage
Set in your `settings.py`:
```python
STATICFILES_STORAGE = 'django_forgiving_collectstatic.storages.ForgivingManifestStaticFilesStorage'
```
## Credits
Contributed by [Tim Kamanin](https://timonweb.com).