salvatore wrote:
> import os.path
> tutconf = os.path.join(os.path.dirname(__file__),
'tutorial.conf')
> cherrypy.config.update(tutconf)
> cherrypy.quickstart(HelloWorld())
If you're still having problems with static content, you can
try having
a look at the new, improved StaticContent wiki page:
http://www
.cherrypy.org/wiki/StaticContent
But I think your problem is actually with config file
loading. CherryPy
3 has separated application config from global (server)
config. So you
need to pass your tutorial.conf file to quickstart:
cherrypy.quickstart(HelloWorld(), config=tutconf)
As I noted in another thread*, I think quickstart should
call
cherrypy.config.update (the global conf update) for you, but
it doesn't
yet.
Robert Brewer
System Architect
Amor Ministries
fumanchu amor.org
*
http://g
roups.google.com/group/cherrypy-users/browse_thread/thread/e
1e7d4088dcddeac#msg_52625a4469a8c819
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at ht
tp://groups-beta.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---
|