fixed the Django over HTTPS behind Nginx bug.#1