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