def badges_enabled():
 return settings.FEATURES.get('ENABLE_OPENBADGES', False)

def badges_enabled ( ) : return settings . FEATURES . get ( 'ENABLE_OPENBADGES' , False )
returns a boolean indicating whether or not openbadges are enabled .