durusmail: quixote-users: Giving Quixote the root url
Giving Quixote the root url
2004-10-26
2004-10-27
2004-10-27
2004-10-27
Giving Quixote the root url
Graham Fawcett
2004-10-27
On Tue, 26 Oct 2004 10:12:17 -0600, VanL  wrote:
> What is the best way to give quixote the root?

Look to the CGI variables in each request's 'environ' dictionary.
Notably, request.environ['SCRIPT_NAME'] ought to be of help.

I've sometimes wondered if Quixote requests ought to grow a new
method, local(), that would append the necessary prefix to a given URL
based on current CGI variables. Then you could call, e.g.,
request.redirect(request.local('/foo')) and end up at the intended
location, irrespective of where the app was deployed.

-- G

reply