Quart Python Error: jinja2.exceptions.TemplateSyntaxError: expected token ',', got 'string'

Viewed 117

I code a discord panel and I would like to put a text in another variable with quart python:

<img src="{{url_for('static', filename=f'assets/IconDiscord/{0}.png'.format(connect))}}"

maos I get this error:

jinja2.exceptions.TemplateSyntaxError: expected token ',', got 'string'

how can I insert the contents of the variable in the image url?

0 Answers
Related