Re: Site app should be able to make absolute URLs #10944

2010-10-06 Thread Laurent Luce
I added a new patch with the following changes: - added get_url() to RequestSite - added support for protocol to get_url() and template tag site_url. You can pass a protocol like 'https', default is 'http'. - updated docs. I agree with SmileyChris that the template tag site_url doesn't provide en

Re: Site app should be able to make absolute URLs #10944

2010-10-05 Thread Gabriel Hurley
I added some feedback on the ticket. Looks like a good start! - Gabriel On Oct 4, 2:12 pm, Laurent Luce wrote: > Hello, > > I added a patch to this ticket http://code.djangoproject.com/ > ticket/10944">#10944 > > - add method get_url to Site model to return an absolute url based on > a relat

Site app should be able to make absolute URLs #10944

2010-10-04 Thread Laurent Luce
Hello, I added a patch to this ticket http://code.djangoproject.com/ ticket/10944">#10944 - add method get_url to Site model to return an absolute url based on a relative path passed as an argument. - add site_url template tag doing the same I am not sure about the method and template tag names.