[Answered ]-Dynamically generate one value in a Django include tag

2👍

You can use the Django’s inbuilt add filter: https://docs.djangoproject.com/en/1.8/ref/templates/builtins/#add

{% include "template.html" with foo=var1 pos="var_num_"|add:foo_counter.next bool="0" %}

Leave a comment