修复 https环境前端获取到的协议是 http 的问题

This commit is contained in:
virusdefender 2015-09-21 23:10:26 +08:00
parent 5f23bff3c5
commit 30df3eadb8

View File

@ -41,3 +41,5 @@ STATICFILES_DIRS = [os.path.join(BASE_DIR, "static/release/"), os.path.join(BASE
# 模板文件夹
TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'template/release/')]
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')