parameters: (self, name: str, feature: str = "this feature")
docstring: Raises an exception if the given app setting is not defined.
docstring_summary: Raises an exception if the given app setting is not defined.
docstring_tokens: Raises an exception if the given app setting is not defined .
function: def require_setting(self, name: str, feature: str = "this feature") -> None:
          """Raises an exception if the given app setting is not defined."""
          if not self.application.settings.get(name):
              raise Exception(
                  "You must define the '%s' setting in your "
                  "application to use %s" % (name, feature)
              )
function_tokens: def require_setting ( self , name : str , feature : str = "this feature" ) -> None : if not self . application . settings . get ( name ) : raise Exception ( "You must define the '%s' setting in your " "application to use %s" % ( name , feature ) )