2
Django uses a template syntax tool, called jinja2, which allows interpolation in the html document using double keys. Unfortunately, Vue.js uses interpolation in the same way.
<p id="exemplo"> {{ message }} </p>
<script>
new Vue({
el: '#exemplo',
data: { message: 'mensagem que deveria aparecer no paragrafo' }
})
</script>
Under normal conditions, only this would be necessary for operation. However, Django recognizes it as its own interpolation, not displaying any content.
Curiosity: need to serve a Vue template with Django himself? Why?
– Woss
I think the best answer would be for fun. I usually use a Node-based stack, and it’s not something that gets me very excited about programming, so I always look for new technologies to use in my spare time. Python became my favorite language, and I really loved the experience I had with Python.
– Smith