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

Uploaded Source

Built Distribution

django_collectstatic_bower-0.1.1-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.1.tar.gz.

File metadata

File hashes

Hashes for django-collectstatic-bower-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a084a7fb22e62ecd595126435c928e41e53d4616c769f5060782c601984060dc
MD5 bed137cbc94e48d33b3d773bf004c510
BLAKE2b-256 ba8fbfe27ad5a61e10ca441140542dee275639d64e51ec82790470822fd4cff2

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for django_collectstatic_bower-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b2ee0203206349cd454d9674946aabdbb0a8b3dee230c6b41016a4b8c5b2d983
MD5 217998c9db9a30130cce43b48626d751
BLAKE2b-256 f627506a75b40a23297efd642570c2c9405f8f7f85e62341b18859491915c6ed

See more details on using hashes here.

Provenance

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