def getvalue(name, default):
 return getattr(settings, name, default)

def getvalue ( name , default ) : return getattr ( settings , name , default )
returns setting from django settings with default value .