Re: admin reports wrong absolute url

2006-01-06 Thread Amit Upadhyay
On 1/6/06, Ian Holsman <[EMAIL PROTECTED]> wrote: Hi Amit.if you modify the 'domain' column in the 'site' table and put hostname:port#it should work ok.Hi Ian,Thanks, I played with the admin, and figured out this thing myself soon after I posted that mail. Is this documented somewhere? Thanks for

Re: admin reports wrong absolute url

2006-01-06 Thread Ian Holsman
Hi Amit. if you modify the 'domain' column in the 'site' table and put hostname:port# it should work ok. regards Ian On 1/6/06, Amit Upadhyay <[EMAIL PROTECTED]> wrote: > On 1/5/06, Jason Davies <[EMAIL PROTECTED]> wrote: > > > Amit Upadhyay wrote: > > > > [snip] > > > > > But when I open the o

Re: admin reports wrong absolute url

2006-01-05 Thread Amit Upadhyay
On 1/5/06, Jason Davies <[EMAIL PROTECTED]> wrote: Amit Upadhyay wrote:[snip]> But when I open the objects "change" page in admin, and try to follow "View> on Site" link, it takes me to some http://localhost:6680/r/10/1/, which> 404s.You need to add the following to your urlconf:(r'^r/', include('

Re: admin reports wrong absolute url

2006-01-05 Thread Adrian Holovaty
On 1/5/06, Amit Upadhyay <[EMAIL PROTECTED]> wrote: > Is the trunk not stable, and should I be working with some older version? Jason had the right answer: You need to put the "/r/" handler in your URLconf. But, for the record, trunk is always intended to be stable. We make unstable changes in br

Re: admin reports wrong absolute url

2006-01-05 Thread Jason Davies
Amit Upadhyay wrote: [snip] > But when I open the objects "change" page in admin, and try to follow "View > on Site" link, it takes me to some http://localhost:6680/r/10/1/, which > 404s. You need to add the following to your urlconf: (r'^r/', include('django.conf.urls.shortcut')), Regards, J

admin reports wrong absolute url

2006-01-05 Thread Amit Upadhyay
Hi, I have a model whose absolute url is deifned:def get_absolute_url(self): return '/invitation/%i/' % self.idand it works fine on python prompt:>>> invitationcodes.get_list ()[0].get_absolute_url()'/invitation/1/'But when I open the objects "change" page in admin, and try to follow "View on Site"