29👍
✅
divisibleby
Returns True if the value is divisible by the argument.
For example:
{{ value|divisibleby:"3" }}
2👍
forlopp count divisible by 2
{% if forloop.counter|divisibleby:2 == 0 %}
forloop count not divisible by 2
{% if forloop.counter|divisibleby:2 != 0 %}
- Push notifications with django and GCM
- Debugging slow Django Admin views
- Celery: clean way of revoking the entire chain from within a task
- Configuring root logger in python
Source:stackexchange.com