On 8/27/06, Michael van der Westhuizen <[EMAIL PROTECTED]> wrote: > On 8/27/06, Alan Green <[EMAIL PROTECTED]> wrote: > > I'm having a problem with the Admin "View on site" button. According > [snip] > > My model objects have a get_absolute_url() method, and the View on > > site button appears as expected, however, the "View on site" button > > links to strange relative urls like "../../../r/10003". > [snip] > > While not a bug, this could certainly be documented better.
Oops.... I'll just take the conversation over to django-users then. Thanks for the quick reply. > Just add the following to your root urlconf and things will work as expected: > ( r'^r/', include( 'django.conf.urls.shortcut' ) ), Also, I had to add django.contrib.sites to INSTALLED_APPS, then change the example.com site to my site's actual name, localhost:8000. Cheers, Alan. -- Alan Green [EMAIL PROTECTED] - http://bright-green.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---