A
A
awd102017-03-07 18:17:25
Django
awd10, 2017-03-07 18:17:25

What is the best way to connect gulp to django?

a little preface:
I started to get acquainted with less as an alternative to css, I really liked it. It asks less.min.js to run - ok.
Timelight download speed increased from 400ms to 1.3s - what the f*ck?
I began to understand further, in order to solve the problem with speed, you need to use the collector. Saw gulp and fell in love.
Further, too, not everything is smooth. Pendos suggest: django + redis + socket.io , to run node.js + gulp: - what the hell ?
In the Russian segment, there are a lot of options with contradictions, and as a result, a number of questions have arisen. Correct me and add if it's not difficult.
anyway, you have to run 2 backends:
a) python -> Django
b) node.js ->application in django
Between A and B, there must be a link so that you can run it with one command.
This option looks like a pack of crutches and bicycles to me. Of course, for my task, I can manually compile Less and use it, but gulp has a lot of goodies that will come in handy for me. I have no desire to use such a bike, maybe there is a simpler solution?
django-pipeline and django-compressor - not considered

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2017-03-07
@awd10

First you make it up - the gulp is constantly working
Then you embed django tags into the template - the gulp is disabled, the python works
Less you can not collect the gulp at all during development, but collect it directly on the client

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question