L
L
lao7772017-04-01 22:24:36
Django
lao777, 2017-04-01 22:24:36

Am I approaching the problem of integrating bootsrap into django correctly?

Hello, I want to use bootstrap for django and I'm trying to do it this way: at the same level where the django root lies, I put the bootstrap sources and try to compile it with grunt into the static directory in django, and now the question is - am I trying to do it right? Somehow it is not possible to immediately set up the soil configs for such an operation, and hence the question arises - did you approach the problem correctly at all?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2017-04-02
@lao777

in general, yes - right, or even as an option through webpack, though I usually make a folder in the root, for example, frontend, and put everything that is needed for the client there.
And if you just need to work with bootstrap through scss, I use this set of packages for small projects.
libsass==0.12.3
django-libsass==0.7
django_compressor==2.1.1
well, or if you are a beginner and do not quite understand what I wrote above, then for a startup you can simply download the full bootstrap *.min at the first stage. -files, put them in static and make a project without a headache, and when you "grow up" then you can already take on more complex assembly schemes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question