from django.template.loader import find_template_source

def get_template_source(template_name):
    return find_template_source(template_name)[0]