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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file jack-bower-0.1.8.tar.gz
.
File metadata
- Download URL: jack-bower-0.1.8.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20f918b448cab1737a4f4096a84a8802b1ed2e04647a71b13ad05eecbcc61cf0 |
|
MD5 | b12d9175a7564f07e33597e76395d3b1 |
|
BLAKE2b-256 | 0c0594b2b34e1b4473be8af2354419e04e40ee4374c570940217029c71b2cac0 |