diff --git a/phonehome/management/__init__.py b/phonehome/management/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/phonehome/management/commands/__init__.py b/phonehome/management/commands/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/phonehome/management/commands/print_phonehome.py b/phonehome/management/commands/print_phonehome.py new file mode 100644 index 0000000..c78a73f --- /dev/null +++ b/phonehome/management/commands/print_phonehome.py @@ -0,0 +1,12 @@ +import json +from django.core.management.base import BaseCommand + +from phonehome.tasks import _make_message_body + + +class Command(BaseCommand): + help = "Print the phonehome message to the console." + + def handle(self, *args, **options): + message_body = _make_message_body() + print(json.dumps(message_body, indent=4))