Skip to content

Automatically install and collect bower components with Django's collectstatic

License

Notifications You must be signed in to change notification settings

nick-allen/django-collectstatic-bower

Repository files navigation

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

About

Automatically install and collect bower components with Django's collectstatic

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages