Skip to main content

Automatically install Bower components using Django's collectstatic

Project description

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-collectstatic-bower-0.1.0.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

django_collectstatic_bower-0.1.0-py2.py3-none-any.whl (7.5 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page