Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to integrate Foundation 5 in django

I'd like to starting use Foundation 5 in a django project. My doubts are about how to setup folders of Foundation project. Foundation now uses bower for js dipendencies. I think it's not correct make a foundation 5 set up into the static folder of django.

Has anyone done a setup of foundation in a django project?

To compile scss files I'll use django-compressor.

like image 916
grigno Avatar asked Dec 02 '13 08:12

grigno


3 Answers

My solution is use django-bower... that's all!

like image 130
grigno Avatar answered Sep 21 '22 05:09

grigno


Check here. It should have all the instructions. https://pypi.python.org/pypi/django-zurb-foundation

like image 35
Cibi Kulandaisamy Avatar answered Sep 21 '22 05:09

Cibi Kulandaisamy


I've been playing with foundation on my django project using the django development server. All I did was download the Foundation 5 static files (JS,CSS) and add them to my django static files. Then I added in the necessary scripts to my base template as shown here: http://foundation.zurb.com/docs/css.html. I haven't put it into production yet but I don't see any reason why that wouldn't work or why using static files isn't correct (as you thought in your question).

There are benefits to compiling the CSS yourself with SASS if you're really hardcore and I imagine that using template tags with django-zurb-foundation is a little cleaner or maybe easier to implement if you have tons of templates that you would need to modify but if you're like me and you just want to try Foundation out on a small project then downloading the extra applications (django-bower, django-zurb-foundation) isn't necessary.

like image 44
johnmic07 Avatar answered Sep 18 '22 05:09

johnmic07