codasus/django-location-field — pull request #8 by Kami (2013-05-16 03:13:24+00:00)
Title: Load Google Maps JavaScript file in the LocationWidget from a https:// url

## Environment details

Python version: 2.7.3
Django version: 1.5.1
Django Location Field version: 46c516df3998292ef5758383cfa5651366b2f15c (latest master checkout)

## Problem

Currently if you serve a website over a secure connection (https) Google Maps JavaScript file won't load in modern browsers (e.g. Chrome), because `LocationWidget` loads file from a non-secure version of the website.

I've modified the widget to always load JavaScript file from https URL, because loading https on http works fine, but it doesn't work in the opposite direction in modern browsers (which is a good and right behavior imo).

## References

* http://googleonlinesecurity.blogspot.com/2011/06/trying-to-end-mixed-scripting.html