def validate_common_config(settings):
 if (not getattr(settings, 'LMS_ROOT_URL', None)):
  raise ValueError("'LMS_ROOT_URL' is not defined.")

def validate_common_config ( settings ) : if ( not getattr ( settings , 'LMS_ROOT_URL' , None ) ) : raise ValueError ( "'LMS_ROOT_URL' is not defined." )
validates configurations common for all apps .