Can I stop displaying variables in Django?

So,

Is there any way to stop django from rendering certain template variables?

It is assumed that I wanted to try vuejs in a django application, what kind of work.

The problem is that both have the same syntax for variables.

So in vuejs you declare them as

{{ message }}

And the djangos template engine interprets it as a django template variable and tries to display it. Since it exists, it disappears, and wujs no longer works.

+4
source share
1 answer

Vue docs, - , {!! !!}, .

, Django {% verbatim %}, , Vuejs.

+10

Source: https://habr.com/ru/post/1617124/


All Articles