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.2.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

django_collectstatic_bower-0.1.2-py2.py3-none-any.whl (7.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-collectstatic-bower-0.1.2.tar.gz.

File metadata

File hashes

Hashes for django-collectstatic-bower-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ab5946f226f63e024cfd6f714fb043dae07a8998099b97a12f588b43d4b9cd8d
MD5 08231383d05cd821f75807a396ec368a
BLAKE2b-256 01036df6a3b52ffc7fd9bd30768856257f2f19f6bb232241580d06d5ac08202e

See more details on using hashes here.

File details

Details for the file django_collectstatic_bower-0.1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_collectstatic_bower-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 32daf1a886d248fbc25805a96b33223e9bc36ebd9f50d159525c4223a6d62ec2
MD5 b73dce3d8f665d7a4c571cf7d7364ec0
BLAKE2b-256 0c56a0ddf739c4225ca41140d163299426231166157e55ec6da162e05540c3cd

See more details on using hashes here.

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