Why do you want to set it in custom template. It would be better if you put
this variable in context dictionary while rendering and then use it in the
template on the basis of condition.
Thanks and regards,
Mahendra
On 4 Apr 2017 7:44 p.m., "valerio orfano" wrote:
> Hi there
>
> is there any c
You can use the {% with %} tag.
https://docs.djangoproject.com/en/1.10/ref/templates/builtins/#with
From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On
Behalf Of valerio orfano
Sent: Tuesday, April 4, 2017 9:15 AM
To: Django users
Subject: Setting variable in custom tem
2 matches
Mail list logo