python ternary in jinja2 gives TemplateSyntaxError: tag name expected

Опубликовано: 04 Август 2026
на канале: The Python Oracle
113
0

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Cosmic Puzzle

--

Chapters
00:00 Question
00:47 Accepted answer (Score 20)
01:11 Answer 2 (Score 2)
01:31 Thank you

--

Full question
https://stackoverflow.com/questions/3...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/l...

--

Tags
#python #css #python27 #jinja2

#avk47