added helper to detect django templates