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,
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
