Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

variables in url_for flask jinja

In my case:

<td><a href="{{ url_for('main.edit_question', id=question[0].id) }}" class="btn btn-default pull-right">Edit</a></td>

Forgot to add the "main." portion...
 
PREVIOUS NEXT
Tagged: #variables #flask #jinja
ADD COMMENT
Topic
Name
7+6 =