old_contents: #!/usr/bin/env python
  # encoding=utf-8
  from __future__ import print_function
  import logging
  import os
  import sys
  
  south_logger = logging.getLogger('south')
  south_logger.setLevel(logging.INFO)
  
  if __name__ == "__main__":
      # altered for new settings layout
      if not any([arg.startswith('--settings=') for arg in sys.argv]):
          os.environ.setdefault("DJANGO_SETTINGS_MODULE",
                                "onadata.settings.default_settings")
          print('Your environment is:"{}"'.format(
              os.environ['DJANGO_SETTINGS_MODULE']))
  
      from django.core.management import execute_from_command_line
  
      execute_from_command_line(sys.argv)
  
new_contents: #!/usr/bin/env python
  # encoding=utf-8
  from __future__ import print_function
  import logging
  import os
  import sys
  
  south_logger = logging.getLogger('south')
  south_logger.setLevel(logging.INFO)
  
  if __name__ == "__main__":
      # altered for new settings layout
      if not any([arg.startswith('--settings=') for arg in sys.argv]):
          os.environ.setdefault("DJANGO_SETTINGS_MODULE",
                                "onadata.settings.common")
          print('Your environment is:"{}"'.format(
              os.environ['DJANGO_SETTINGS_MODULE']))
  
      from django.core.management import execute_from_command_line
  
      execute_from_command_line(sys.argv)
  
subject: use common settings as default to prevent local_settings from being overidden by default_settings