How to integrate Foundation 5 in django

I would like to start using Foundation 5 in a django project. My doubts about how to set up the Foundation project folders. The foundation now uses conversation for js differences. I think it is not right to make foundation 5 installed in the django static folder.

Has anyone done the foundation setup in a django project?

To compile scss files, I will use django-compressor.

+6
source share
3 answers

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

+9
source

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

+7
source

I played with the foundation in my django project using the django development server. All I did was load the Foundation 5 static files (JS, CSS) and add them to the django static files. Then I added the necessary scripts to the base template, as shown below: http://foundation.zurb.com/docs/css.html . I have not put it into production yet, but I see no reason why this will not work or why using static files is wrong (as you thought in your question).

There are advantages to compiling CSS yourself using SASS if you are really hardcore, and I suggest that using template tags with django-zurb-foundation is a little cleaner or maybe easier to implement if you have a lot of templates that you would need change, but if you are like me and you just want to try Foundation in a small project, then downloading additional applications (django-bower, django-zurb-foundation) is not required.

+2
source

Source: https://habr.com/ru/post/959151/


All Articles