django-collectstatic-bower

Automatically install Bower components using Django's collectstatic


License
MIT
Install
pip install django-collectstatic-bower==0.1.2

Documentation

django-collectstatic-bower

Django static file finder that automatically runs bower install and collects components when running Django's collectstatic

Respects .bowerrc directory config when collecting files

Tested on python 2.7 and 3.5

Note: The finder requires the Bower executable be installed already

Install

Pip install package

pip install django-collectstatic-bower

Add to STATICFILE_FINDERS:

STATICFILE_FINDERS = (
  ...
  'django_collectstatic_bower.staticfiles.finders.BowerComponentFinder',
)

That's it, just collectstatic files like normal

./manage.py collectstatic