Jonathan Ballet wrote:
> Hello,
>
> I try to use Turbogears on my web server. Currently, I run Turbogears
> 0.9a8 which is behind an Apache proxy.  The proxy is set to serve URL
> on '/temp/test/' (yes, this is a test installation ;)
>
> So, my website has a header, with links which are kept all over the
> site, such as :
>  - 'Homepage' which links to '/'
>  - 'Weblog' which links to '/weblog/'
>  - etc.
> They are defined in a 'master.kid' template, from which all others
> templates inherits.
>
> Those links are relative to the Turbogears installation, so, in my
> setup with Apache, _real_ urls are in fact '/temp/test/' and
> '/temp/test/weblog/' respectively.
> I had to change the dev.cfg file to add server.webpath="/temp/test" and
> tree.mount_point="/temp/test" in order of this setup to work, and I had
> to change my URLs in my Kid files to be generated by turbogears.url()
>
>
> However, if I click on Weblog, I go to '/temp/test/weblog/', but now,
> the Weblog URL is '/temp/test/weblog/weblog/' .... which isn't good at
> all. Of course, the same problem occurs for all URLs on this pages (CSS
> file, Homepage link, etc.)
>
>
> So, how can I handle this problem ?
>
> Regards,
>        Jonathan


I found the solution when re-reading the doc at
http://www.turbogears.org/preview/docs/gs/urls.html
My controllers didn't inherited from the good classes. So :
  - I changed my root controller to inherit from
turbogears.controllers.Root instead of
turbogears.controllers.RootController (i haven't check if thoses
classes are the same)
  - I changed my subcontrollers (weblog and so on) to inherit from
turbogears.controllers.Controller instead of
turbogears.controllers.RootController

Now, it works as expected. Sorry for the convenience.

    Jonathan Ballet.


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