I am creating a CherryPy application and would like to have most of the settings in the .conf file as follows:
[global] server.socketPort = 8080 server.threadPool = 10 server.environment = "production"
However, I would also like to set up a few with a dictionary in the code, for example:
conf = {'/': {'tools.staticdir.on': True, 'tools.staticdir.dir': os.path.join(current_dir, 'templates')}} cherrypy.quickstart(HelloWorld(), config=conf)
Is it possible to combine both configurations into one and then pass it to the config quick launch option?
python cherrypy configuration
jamesaharvey
source share