I'm having trouble with moving to production (python-hosting.com) on a
web app built with Turbogears 0.9a4. This may be something trivial
because I'm not experienced at the configuration in TG. The problem is
that pages served by subcontrollers having an identity "require"
statement fail because they get changed to http://127.0.0.1:<port>/...
in my client browser.

My code uses subcontrollers, like in the FastTrack example at
http://trac.turbogears.org/turbogears/wiki/LargeApplication.
So my Root controller looks like:

class Root(controllers.RootController):
   ...
   projects = ProjectsController()
   dashboard = DashboardController()

The subcontrollers look like:
class ProjectsController(identity.SecureResource):
   require = identity.not_anonymous()
   ...

>From the setup instructions at
http://trac.turbogears.org/turbogears/wiki/ApacheIntegration, I have in
prod.cfg:
[/]
baseUrlFilter.on = True
baseUrlFilter.useXForwardedHost = True

Urls handled by the Root controller work fine. Urls pointing to e.g.
http://mydomainname.com/projects/ get changed to
http://127.0.0.1:<port>/projects in my browser (and therefore cannot
connect), rather than retaining the proper domain name. If I comment
out the require line, they work as expected. However /projects (without
the trailing slash) also fails even when the require line is commented
out. I've looked at the identity source but can't see how it could
cause this.

The only other (possibly) relevant bit of info is that I have a
_cp_filter which looks for and removes (if it is there) an account name
in the first part of the url, and sets cherrypy.request.account.

Does anyone know where I am going wrong or where to look for more info?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to