python - Cherrypy 3.2 virtual host - application configuration -



python - Cherrypy 3.2 virtual host - application configuration -

i trying utilize cherrypy virtualhost dispatcher serving multiple different applications. thought have separate configuration file each application, kinda lost. if utilize virtualhost dispatcher, applications in same namespace, illustration section database connection can occur once. or not? can please help?

for current purposes, satisfied solution:

i create separate config file cherrypy application , using same class cherrypy parsing file.

from cherrypy.lib.reprconf import config settings = config(os.path.join(confpath, "settings.cfg"))

also, there python standard module handling config files named configparser.

this question quite irrelevant me, because serving multiple cherrypy applications (as thought it) quite hard cherrypy server. decided utilize cherrypy wsgi server behind appache , solves problem explicitly.

python python-3.x cherrypy virtualhost

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -