def execute_from_config(config_file): '''Create and run an :class:`App` from a ``config_file``. This is the function to use when creating the script which runs your web applications:: import lux if __name__ == '__main__': lux.execute_from_config('path.to.config') :param config_file: the python dotted path to the config file for setting up a new :class:`App`. The config file should be located in the python module which implements the :ref:`main application` of the web site. ''' execute_app(App(config_file))
def execute_from_command_line(argv=None): '''Execute a command line command''' execute_app(App('lux.core.app'))