def handle_default_options(options):
 if options.settings:
  os.environ['DJANGO_SETTINGS_MODULE'] = options.settings
 if options.pythonpath:
  sys.path.insert(0, options.pythonpath)

def handle_default_options ( options ) : if options . settings : os . environ [ 'DJANGO_SETTINGS_MODULE' ] = options . settings if options . pythonpath : sys . path . insert ( 0 , options . pythonpath )
include any default options that all commands should accept here so that managementutility can handle them before searching for user commands .