Mohamed Feddad

43%
Flag icon
in DTL the method call is implied as in the following example: {% for post in user.public_posts %}     ... {% endfor %} But in Jinja2, we invoke the public_posts method similar to a Python function call: {% for post in user.public_posts() %}     ... {% endfor %}
Django Design Patterns and Best Practices: Industry-standard web development techniques and solutions using Python, 2nd Edition
Rate this book
Clear rating