nvbn / django-bower

Easy way to use bower with your django project
https://django-bower.readthedocs.io/
518 stars 75 forks source link

Support bower.json #73

Open beruic opened 7 years ago

beruic commented 7 years ago

I don't understand why you have to define your packages in settings.py. It would be easier to get help, and easier to get started if you already know bower, by supporting bower.json and .bowerrc for specifying your environment.

tewfik-ghariani commented 7 years ago

Actually bower.json IS supported! Here is a sample code and it works like a charm!

Settings.py

..
BOWER_COMPONENTS_ROOT = os.path.join(BASE_DIR, 'components')
..

bower.json initialization

python manage.py bower init

Install modules

python manage.py bower update