def _lazy_get_settings(opt, ttype, default_value=obj): return lazy(_call_getattr, ttype)(opt, default_value) # Lazyly read configurations to allow @override_settings