Curly brackets conflict between Django template and Alpine.js
I am trying to output a Python variable within an Alpine.js tag, but PyCharm fails to recognize what's going on. Example:
x-data="{
homeForfeit: {{ match.home_forfeit|yesno:'true,false' }},
awayForfeit: {{ match.away_forfeit|yesno:'true,false' }},
}"I do have the Alpine.js support plugin enabled.
Any insight?
Please sign in to leave a comment.