On 10 Dec 2012, at 5:43 PM, Vinicius Assef <[email protected]> wrote: > > I forgote the link to pastebin. > > Here it is: http://pastebin.com/i0gk9xik
FWIW, the parametric router has a policy of always being able to accept an explicit URL (full /a/c/f/args?vars). It's careful when rewriting outgoing URLs for URL() to be sure no ambiguity arises. To your questions about recognizing localhost: it's true that request is not available when routes.py is parsed. It *is* available when the result is actually used, though. I'm not sure how to make it available in a generally useful way, though. --

