execute for loop only once in django template html code example Example: how take from for loop on django template {% autoescape on %} {{ body }} {% endautoescape %}