On Thu, 2007-06-21 at 10:45 -0700, Chris Brand wrote:
> I've recently been adding get_absolute_url() to my models and using it in my
> templates.
> In the documentation, it says that this also gives you a free "View on site"
> link in the Admin, which it does.
> My problem is that clicking that gives me an HTTP page rather than the HTTPS
> page which would actually show something. Apart from that one "s", the
> resulting URL is fine, but it's a pretty important "s".
> 
> Is there a way to tell Admin to use HTTPS rather than HTTP for these links ?

I guess if you admin site was accessed over https it would work.
Otherwise, no, since it is a relative URL (and then redirected via an
HTTP redirect), so it has to use the same schema (and hostname) as the
originating page, which is the admin site change page.

> 
> Failing that, is there a way to turn them off (as they don't work) ?

No. They are triggered by have get_absolute_url(). You could edit the
template in contrib/admin/templates/admin/change_form.html if you really
cared to.

Regards,
Malcolm



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