On Apr 16, 6:12 am, Damian <[email protected]> wrote:
> How about:
>
> in your ini file:
> https_server = abc:123
>
> and in mako (or templating engine etc):
> <%from pylons import config %>
> ${h.url("/search", host=config['https_server'])}
>

You'd have to specify protocol='https' as well, right?

> Guess it might be useful to have a default/standard way of specifying
> where your https lives in the ini file, it's something I imagine gets
> used a lot (I certainly use it often).

Yes, that would be a nice feature. I guess a lot of people don't run
servers that serve both HTTP and HTTPS traffic behind a proxy, though.
I find it invaluable myself.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to