On Sep 10, 10:42 am, AZMel <[EMAIL PROTECTED]> wrote:
> On Sep 9, 5:29 pm, Graham Dumpleton <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > 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
>
> I switched over to the tgbig template this afternoon to try to get
> different results but they stayed the same.
>
> This is what my controller looks like:
>
> import turbogears as tg
> from turbogears import controllers, expose, flash
> from turbogears import identity, redirect
> from cherrypy import request, response
>
> from myclient.controllers.reports import ReportsController
>
> class Root(controllers.RootController):
> reports = ReportsController()
> @expose(template="myclient.templates.welcome")
> # @identity.require(identity.in_group("admin"))
> def index(self):
>
> ...etc...
>
> Except for the 500 error, which was the whole basis for this thread to
> begin with, my application was working fine using proxy. I switched
> over to wsgi this morning to see of there was a difference have have
> not be able to successfully run it that way. Just to re-iterate,
> everything works as it should when wsgi is removed from the equation,
> but I do need to deploy it so running it manually is out of the
> question.
Stupid question, but do you have any residual mod_rewrite rules in
your Apache configuration somewhere pertaining to when you were trying
to host TG behind Apache?
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
-~----------~----~----~----~------~----~------~--~---