its gets the domain value from the Site object.  I'm guessing that you have
that domain set to "localhost"

the view that actually does the relocation is at
django.contrib.contenttypes.views shortcut

site = Site.objects.all()[0]

site.name

site.domain

site.domain = "127.0.0.0:8000"
site.save()


-flx



On Fri, Oct 24, 2008 at 11:15 PM, Adi Jörg Sieker <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I just noticed that the "View on site" link on the Admin change entry
> page redirects to localhost/<whatever_url>. The dev server is running on
> localhost:8000 though.
> The model being used is the Entry model from coltrane_blog[1] which has
> a get_absolut_url method that looks like:
>     from django.db import models
>
>     def get_absolute_url(self):
>         return ('coltrane_entry_detail', (),
>                        { 'year': self.pub_date.strftime('%Y'),
>                           'month': self.pub_date.strftime('%b').lower(),
>                           'day': self.pub_date.strftime('%d'),
>                           'slug': self.slug })
>     get_absolute_url = models.permalink(get_absolute_url)
>
>
> Is this a config issue on my side?
>
> adi
>
> [1] http://code.google.com/p/coltrane-blog/
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to