klipstein/dojango — Issue #14: 14 - Support HTTPS 
Author: klipstein
Created: 2011-11-06 12:46:25+00:00
State: open

I'm seeing browser warnings with my site because the Dojo links use HTTP
while the site is being accessed over HTTPS. I'm very new to this. Am I
doing something wrong? For now, I hacked around this with the following
code in my settings.py:

DOJANGO_DOJO_PROFILE = "google"
from dojango.conf.settings import DOJO_PROFILES
DOJO_PROFILES["google"]["base_url"] =
DOJO_PROFILES["google"]["base_url"].replace("http:// "https://"

Would it be possible for this to be detected on-the-fly (i.e. if the page
is loaded over HTTP, use http:// and if it's loaded over HTTPS, use https://)?

Original link: http://code.google.com/p/dojango/issues/detail?id=14