if result:
    if not isinstance(result, (list, tuple)):
        result = [result]
output = '\n  '.join(smart_unicode(os.path.realpath(path)) for path in result)
self.stdout.write(smart_str("Found '%s' here:\n  %s\n" % (path, output)))
Django: How to get a static file's filepath in a development environment?