djangosnippets.org: Latest snippets tagged with 'max'https://djangosnippets.org/tags/max/2011-05-02T13:07:36.982994-05:00math tag
2011-05-02T13:07:36.982994-05:00itchyfingrshttps://djangosnippets.org/snippets/2424/<p>Syntax:
{% math <argument, ..> "expression" as var_name %}</p>
<p>Evaluates a math expression in the current context and saves the value into a variable with the given name.</p>
<p>"$<number>" is a placeholder in the math expression. It will be replaced by the value of the argument at index <number> - …</p>
Freely redistributableImageField with specified maximum image size
2010-03-21T11:20:25.703036-05:00virhilohttps://djangosnippets.org/snippets/1966/<p>You can specyfy max width and height which image can have, and it never exceed that size.</p>
Freely redistributable