Jorge, what version are you running? I haven't been having this
problem, though I've been using an IP address on 0.8a4.



On 01 Dec 2005 11:58:59 -0200, Jorge Godoy <[EMAIL PROTECTED]> wrote:
>
>
> Hi!
>
>
> What's the setup that I have to do to be able to pass a relative URL to
> "turbogears.url" (for using redirects with CherryPy) and have it include the
> hostname, instead of using "localhost"?
>
> Today when I issue a raise
> cherrypy.HTTPRedirect(turbogears.url("/relative_url/")) it redirects me to
> "http://localhost:8080/relative_url"; instead of
> "http://my.site.com/relative_url";.  If I hardcode the URL and use
> cherrypy.HTTPRedirect("http://my.site.com/relative_url/";) it works perfectly,
> but then I loose the ability of "moving" things around easily (well, I need a
> "sed" script to fix this for the production server, but that's just it...).
>
>
> Thanks in advance,
> --
> Jorge Godoy      <[EMAIL PROTECTED]>
>
>


--
[EMAIL PROTECTED]

Reply via email to