Commit 6a545869 authored by 王英豪's avatar 王英豪

修改跨域

parent f00fe358
...@@ -22,8 +22,8 @@ print(ENV_PROFILE) ...@@ -22,8 +22,8 @@ print(ENV_PROFILE)
if ENV_PROFILE == "SERVER": if ENV_PROFILE == "SERVER":
# 生产环境地址 # 生产环境地址
# ALLOWED_HOSTS = ["172.30.100.253", "atp.rd.com", "127.0.0.1"] ALLOWED_HOSTS = ["172.16.0.82", "127.0.0.1"]
ALLOWED_HOSTS = ['*'] # ALLOWED_HOSTS = ['*']
# 配置自动化脚本日志文件的存储位置 # 配置自动化脚本日志文件的存储位置
WEB_ROOT = os.path.join('/home/quant_group/data/Web_Script') WEB_ROOT = os.path.join('/home/quant_group/data/Web_Script')
...@@ -43,10 +43,10 @@ if ENV_PROFILE == "SERVER": ...@@ -43,10 +43,10 @@ if ENV_PROFILE == "SERVER":
# 访问资源上传的路径 # 访问资源上传的路径
WEB_URL = "/home/quant_group/data/Web_Script/" WEB_URL = "/home/quant_group/data/Web_Script/"
# CORS_ALLOWED_ORIGINS = ( CORS_ALLOWED_ORIGINS = (
# ['http://127.0.0.1:*', 'https://172.16.0.82:*'] ['http://127.0.0.1:*', 'https://172.16.0.82:*']
#
# ) )
# mysql # mysql
DATABASES = { DATABASES = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment