app_command.py 315 B

123456789
  1. from django.core.management.base import AppCommand
  2. class Command(AppCommand):
  3. help = 'Test Application-based commands'
  4. requires_system_checks = []
  5. def handle_app_config(self, app_config, **options):
  6. print('EXECUTE:AppCommand name=%s, options=%s' % (app_config.name, sorted(options.items())))