old_contents: #!/usr/bin/env python
  import os, sys
  os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
  
  import django
  if hasattr(django, 'setup'):
      django.setup()
  
  from django.core.management import call_command
  call_command(*sys.argv[1:])
  
new_contents: #!/usr/bin/env python
  import os
  import sys
  
  if __name__ == "__main__":
      os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings")
  
      from django.core.management import execute_from_command_line
  
      execute_from_command_line(sys.argv)
  
subject: Use default manage.py