[Answered ]-How we can implement this coniditon in django template

1👍

You can expresss this as:

{% if email_setting.twitter_link or email_setting.instagram_link or email_setting.fb_link %}
   …
{% endif %}

Here we check the truthiness of the twitter_link and other settings. The truthiness of None and the empty string are False whereas for a non-empty string, it is True.

Leave a comment