On Sep 10, 10:08 am, AZMel <[EMAIL PROTECTED]> wrote:
> On Sep 9, 4:39 pm, Graham Dumpleton <[EMAIL PROTECTED]>
> > You need to have:
>
> > turbogears.config.update({'global': {'server.webpath': '/webapps'}})
>
> > If it is instead mounted at root then you shouldn't set server.webpath
> > (just to be safe).
>
> > With those matching, then describe the behaviour you are seeing,
> > indicating the URL being requested and what URL page is pushing back.
>
> > Also indicate whether for code generating problem page, is using url()
> > function described in:
>
> > http://docs.turbogears.org/1.0/GettingStarted/URLs
>
> > being used or are you hard coding URLs in the generated pages.
>
> > Graham
>
> With /webapps put back into the server.webpath I get the following:
>
> http://192.168.1.9/
> This gets redirected to apache2-default/
>
> http://192.168.1.9/webapps/
> This comes up with a 404 error. path '/' not found.
>
> http://192.168.1.9/webapps/webapps/
> This comes up with the home page but no static content is sent
> over. Also tg,url('/') returns /webapps which I would have expected /
> webapps/webapps.
>
> Remember that the app was developed with / being returned from
> tg.url('/').
>
> There seems to be a missing path somewhere but I don't know where.
This is where my knowledge of CherryPy/TurboGears is a bit lacking,
but from looking at documentation, how is your top level controller
object defined. Ie., what are the names of the exposed methods? Ie.,
what is:
myclient.controllers.Root
defined as?
I would expect to see an index() method. Have you perhaps called it
webapps() instead?
Graham
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---