# -*- coding: utf-8 -*-
import sys

from django.core.management.base import LabelCommand
from django.template import TemplateDoesNotExist, loader

from django_extensions.management.utils import signalcommand


class Command(LabelCommand):
    help = "Finds the location of the given template by resolving its path"
    args = "[template_path]"
    label = 'template path'

    @signalcommand
    def handle_label(self, template_path, **options):
        try:
            template = loader.get_template(template_path).template
        except TemplateDoesNotExist:
            sys.stderr.write("No template found\n")
        else:
            print(template.name)

@@ -638,13 +638,44 @@
     
-print
+sys.stdout.write(self.style.SUCCESS(
 (tem
@@ -685,9 +685,11 @@
 te.name)
+))
 %0A

change print into self.stdout