<s> from django . conf import settings <EOL> from swingtime . conf import swingtime_settings <EOL> class AppSettings ( object ) : <EOL> SETTINGS_MODULE = None <EOL> def __init__ ( self , base_settings_module , global_override ) : <EOL> for setting in dir ( base_settings_module ) : <EOL> if setting == setting . upper ( ) : <EOL> setattr ( self , setting , getattr ( base_settings_module , setting ) ) <EOL> if hasattr ( settings , global_override ) : <EOL> self . SETTINGS_MODULE = getattr ( settings , global_override ) <EOL> try : <EOL> mod = __import__ ( self . SETTINGS_MODULE , { } , { } , [ '<STR_LIT>' ] ) <EOL> except ImportError as e : <EOL> raise ImportError ( <EOL> "<STR_LIT>" % ( self . SETTINGS_MODULE , e ) <EOL> ) <EOL> for setting in dir ( mod ) : <EOL> if setting == setting . upper ( ) : <EOL> setattr ( self , setting , getattr ( mod , setting ) ) <EOL> def get_all_members ( self ) : <EOL> return dir ( self ) <EOL> settings = AppSettings ( swingtime_settings , '<STR_LIT>' ) </s>
