python - Could not parse the remainder: '%' from '%' Django -


i working django mezannine , running weird issue jinja.

templatesyntaxerror @ /services/ not parse remainder: '%' '%' request method: request url:    http://192.168.1.14/services/ django version: 1.8.3 exception type: templatesyntaxerror exception value:     not parse remainder: '%' '%' exception location: /usr/local/lib/python3.4/dist-packages/django/template/base.py in __init__, line 639 python executable:  /usr/bin/python3 python version: 3.4.3 

my code looks below:

{% image in images %}    {% if loop.index % 3 == 0 %} #this line doesn't      {{image}}     {% endif %} {% endfor %} 

any idea going on here?

thanks

% reserved django have use divisibleby

{% image in images %}     {% if forloop.counter|divisibleby:"3" %}        {{image}}     {% endif %} {% endfor %} 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -