__author__ = 'philroche'
import json
import sys
from django.core.management.base import BaseCommand, CommandError
from health_check.utils import get_plugins

class Command(BaseCommand):
    help = 'Django Health Checks'


    def handle(self, *args, **options):
        plugins, working = get_plugins()

        health_check_status = {}
        for plugin in plugins:
            health_check_status[str(plugin.identifier())] = str(plugin.pretty_status())

        health_check_json = json.dumps(health_check_status)
        sys.stdout.write("No filenames given; defaulting to admin scripts\n")
@@ -214,17 +214,16 @@
 hecks'%0A%0A
-%0A
     def 
@@ -295,25 +295,24 @@
 ugins()%0A
-%0A
         
 health_c
@@ -307,32 +307,51 @@
     
-h
+sys.stdout.write(%22Running H
 ealth
-_
+ 
 check
-_status = %7B%7D
+s%5Cn%22)
 %0A   
@@ -394,28 +394,57 @@
     
-h
+sys.stdout.write(%22Running H
 ealth
-_
+ 
 check
-_status%5B
+ - %25s%5Cn%22 %25 
 str(
@@ -467,49 +467,18 @@
 r())
-%5D = str(plugin.pretty_status()
 )%0A
-%0A
         
 heal
@@ -477,133 +477,73 @@
     
-health_check_json = json.dumps(health_check_status)%0A        sys.stdout.write(%22No filenames given; defaulting to admin scripts%5Cn%22)
+    sys.stdout.write(%22Result - %25s%5Cn%22 %25 str(plugin.pretty_status()))%0A%0A

Add feedback to healthcheck management command