How to use Django template as a component?
问题 I have 5 templates: index.html, detail.html, tag.html, login.html, register.html and a base.html All 5 templates will extend base.html . index.html, detail.html, tags.html have a same <section>...</section> html code section with the same data from backend.I want to add this section to base.html , so that don't need to repeat it 3 times in 3 different templates. But the problem is,the login.html and register.html do need this section. I know if it is React.js or Vue.js it will be very easy to