def import_setting(name):
 value = getattr(settings, name, None)
 return import_object(value)

def import_setting ( name ) : value = getattr ( settings , name , None ) return import_object ( value )
imports an object specified either directly or as a module path .