i'm fairly new to turbogears so any help would be appreciated.
i am trying to run turbogears from behind a lighttpd (for better ssl
and basic http handling) and i have it somewhat working. Only a couple
of things seem broken.
First off, in dev.cfg (and prod.cfg as well) it did not recognise the %
(current_dir_uri)s command. I had to replace it with the current
working path by hand to get it to work.
secondly, it could not find wsgi.url_scheme, so the Cherrypy did not
want to start. I fixed it like this
[code]
environ = {'server.webpath':'/','current_dir_uri':'/home/davidd/
localroot/
wiki20','wsgi.url_scheme':'http','engine.autoreload_on':False}
cherrypy.config.update({'wsgi.url_scheme':'http','engine.autoreload_on':False})
environ.update({'wsgi.url_scheme':'http'})
if len(sys.argv) > 1:
cherrypy.config.update(environ,file=sys.argv[1])
[/code]
after that only one bug remains, and that is with tg.url()
even when i force server.webpath to be "/" somehow my controller
thingy still shows up in the returnvalue of
tg.url()
for example: when i go (firefox) to http://myhost:8080/index and i do
view source for my page i see that it tries to open "/index/static/css/
style.css" as stylesheet, instead of "/static/css/style.css"
tg.url() only works correctly for the GET / , all other things are
broken.
when searching for people with similar problems i found
http://groups.google.com/group/turbogears/browse_thread/thread/2e6ad60c1923eeda#
like this person i can enter any random string between my hostname and
my controller pointer
http://mhost/garblegarblegarble/index will return the data that is
supposed to be returned, just the tg.url() parts are wrong then
my application is really quite similar to the wiki20 tutorial. Any
help would be greatly appreciated.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---