How do you access config outside of a request in CherryPy?
- by OrganicPanda
I've got a webapp running on CherryPy that needs to access the CherryPy config files before a user creates a request. The docs say to use:
host = cherrypy.request.app.config['database']['host']
But that won't work outside of a user request. You can also use the application object when you start the app like so:
...
application =…