code: def updateConstant(name,value,fail_silently=False):
      '''
      This is a convenience function that makes it easy to update the value of a preference/constant
      without needing to check if the django_dynamic_preferences app has been set up, without
      needing to load from that model directly, and with the option to suppress any errors
      (e.g. KeyErrors resulting from the order in which apps are loaded).
      '''
  
      # We instantiate a manager for our global preferences
      if 'dynamic_preferences_globalpreferencemodel' in connection.introspection.table_names() and not isPreliminaryRun():
          params = global_preferences_registry.manager()
          try:
              params[name] = value
              return True
          except Exception as e:
              logger.error('Error in updating constant: %s' % e)
              if not fail_silently:
                  raise
              return Falsf updateConstant(name,value,fail_silently=False):
      '''
      This is a convenience function that makes it easy to update the value of a preference/constant
      without needing to check if the django_dynamic_preferences app has been set up, without
      needing to load from that model directly, and with the option to suppress any errors
      (e.g. KeyErrors resulting from the order in which apps are loaded).
      '''
  
      # We instantiate a manager for our global preferences
      if 'dynamic_preferences_globalpreferencemodel' in connection.introspection.table_names() and not isPreliminaryRun():
          params = global_preferences_registry.manager()
          try:
              params[name] = value
              return True
          except Exception as e:
              logger.error('Error in updating constant: %s' % e)
              if not fail_silently:
                  raise
              return False
docs: This is a convenience function that makes it easy to update the value of a preference/constant
      without needing to check if the django_dynamic_preferences app has been set up, without
      needing to load from that model directly, and with the option to suppress any errors
      (e.g. KeyErrors resulting from the order in which apps are loaded).