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 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')), > > > Hi Jason, > > Thanks, this works, could not find this in the documentation for the models. > > But this leads me a to a different problem: it is redirecting me to the > absolute url including the hostname and and all, I am developing things > using runserver, and using port forwarding to access the runserver port on > remote server, and can not deploy it in the intended location unless I have > done development as the Apache instance I am going to use is serving some > other application already and I can not mess with it much. What is the logic > behind this redirect? Why can't admin use the URL that get_absolute_url > returns directly? Is there any easy way to disable this? > > > -- > Amit Upadhyay > Blog: http://www.rootshell.be/~upadhyay > +91-9867-359-701 -- [EMAIL PROTECTED] -- blog: http://feh.holsman.net/ -- PH: ++61-3-9877-0909 If everything seems under control, you're not going fast enough. - Mario Andretti
