Re: trailing slash defeats get_absolute_url

2012-06-15 Thread Mike Dewhirst
Thanks Bruno. I haven't looked closely at that yet. I'll see if i can do some reading this weekend. Cheers Mike Connected by MOTOBLURâ„¢ -Original message- From: bruno desthuilliers To: django-users@googlegroups.com Sent: Fri, 15 Jun 2012, 18:48:24 AEST Subject: Re: trai

Re: trailing slash defeats get_absolute_url

2012-06-15 Thread bruno desthuilliers
On Friday, June 15, 2012 9:42:33 AM UTC+2, Mike Dewhirst wrote: > > On 15/06/2012 5:11pm, bruno desthuilliers wrote: > > You have to end your url patterns with a slash, ie r'^search/'. > > Ok. I added a trailing slash to the get_absolute_url method like so ... > return 'xitem/%s/' % self.id ..

Re: trailing slash defeats get_absolute_url

2012-06-15 Thread Mike Dewhirst
On 15/06/2012 5:11pm, bruno desthuilliers wrote: You have to end your url patterns with a slash, ie r'^search/'. Ok. I added a trailing slash to the get_absolute_url method like so ... return 'xitem/%s/' % self.id ... and added an extra url pattern ... urlpatterns = patterns('item.views',