code: def getConstant(name):
      '''
      This is a convenience function that makes it easy to access the value of a preference/constant
      without needing to check if the django_dynamic_preferences app has been set up and without
      needing to load from that model directly.
      '''
  
      # 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:
              return params.get(name)
          except NotFoundInRegistry as e:
              logger.error('Error in getting constant: %s' % e)
              return Nonf getConstant(name):
      '''
      This is a convenience function that makes it easy to access the value of a preference/constant
      without needing to check if the django_dynamic_preferences app has been set up and without
      needing to load from that model directly.
      '''
  
      # 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:
              return params.get(name)
          except NotFoundInRegistry as e:
              logger.error('Error in getting constant: %s' % e)
              return None
docs: This is a convenience function that makes it easy to access the value of a preference/constant
      without needing to check if the django_dynamic_preferences app has been set up and without
      needing to load from that model directly.