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
Post a Comment