L
L
lavezzi12018-09-13 14:53:59
Django
lavezzi1, 2018-09-13 14:53:59

How to build frontend for django?

Hello. I need to write a frontend using django templates. I would like each page to have some kind of common main.js, as well as page js, such as contact.js with code for this particular page.
Do you have any preparations for the structure?
I googled webpack-loader, but its disadvantage is that it injects one file into templates and does not split the code like typical code splitting.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dastrix_dude, 2018-09-15
@dastrix_dude

Use a page wrapper with basic JS and just static files for included ones

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question