List Info

Thread: Displaying Image in cherrypy...problems continue..sorry :-(




Displaying Image in cherrypy...problems continue..sorry :-(
user name
2006-10-21 18:24:07
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
fumanchuamor.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-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at ht
tp://groups-beta.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

Displaying Image in cherrypy...problems continue..sorry :-(
user name
2006-10-22 15:23:03
Thank ou very much, I will tru your solution


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at ht
tp://groups-beta.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )