Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Installing frontend Django dependencies via bower.

Project Description

Installing frontend Django dependencies via bower.

Installation

To get the latest stable release from PyPi

pip install jack-bower

To get the latest commit from GitHub

pip install -e git+git://github.com/Celc/jack-bower.git#egg=bower

Add bower to your INSTALLED_APPS

INSTALLED_APPS = (
    ...,
    'bower',
)

Usage

Use ./manage.py bower_init <app_name> to bootstrap an app with .bowerrc, bower.json and .gitignore. Add your dependencies to bower.json

{
    "dependencies": {
        "backbone": "1.0.0",
        "underscore": "1.4.4"
    }
}

Then just run ./manage.py bower_install and it’ll install all the dependencies in all the INSTALLED_APPS apps that has a bower.json. Default install path is static/bower_components/<library>, you can edit .bowerrc to change that.

Use like normal in templates:

{% load staticfiles %}
{% static 'components/bootstrap/bootstrap.js'%}

Contribute

If you want to contribute to this project, please perform the following steps:

# Fork this repository
# Clone your fork
mkvirtualenv -p python2.7 jack-bower
npm install -g bower
make develop

git add . && git commit
# Send us a pull request
Release History

Release History

This version
History Node

0.1.8

History Node

0.1.7

History Node

0.1.6

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
jack-bower-0.1.8.tar.gz (6.1 kB) Copy SHA256 Checksum SHA256 Source Mar 25, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting