An open API service indexing awesome lists of open source software.

https://github.com/timonweb/django-forgiving-collectstatic


https://github.com/timonweb/django-forgiving-collectstatic

Last synced: over 1 year ago
JSON representation

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).