Django Admin's “view on site” points to example.com instead of my domain

后端 未结 6 930
一生所求
一生所求 2020-12-15 04:37

I added a get_absolute_url function to one of my models.

def get_absolute_url(self):
    return \'/foo/bar\' 

The admin site p

6条回答
  •  时光取名叫无心
    2020-12-15 05:04

    The funniest thing is that "example.com" appears in an obvious place. Yet, I was looking for in in an hour or so.

    Just use your admin interface -> Sites -> ... there it is :)

提交回复
热议问题