How to integrate Foundation 5 in django

前端 未结 3 735
醉酒成梦
醉酒成梦 2021-01-02 18:09

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

3条回答
  •  伪装坚强ぢ
    2021-01-02 18:38

    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.

提交回复
热议问题