Commit aebf8021 authored by 王英豪's avatar 王英豪

1

parent 9d60be81
...@@ -129,7 +129,7 @@ if ENV_PROFILE == "SERVER": ...@@ -129,7 +129,7 @@ if ENV_PROFILE == "SERVER":
elif ENV_PROFILE == "1": elif ENV_PROFILE == "1":
print("windows环境") print("windows环境")
# 测试环境地址 # 测试环境地址
ALLOWED_HOSTS = ["127.0.0.1", "localhost"] ALLOWED_HOSTS = ["127.0.0.1", "localhost", "172.16.0.82"]
# 配置自动化脚本日志文件的存储位置 # 配置自动化脚本日志文件的存储位置
# WEB_ROOT = os.path.join(BASE_DIR, 'web_log/test_log') # WEB_ROOT = os.path.join(BASE_DIR, 'web_log/test_log')
WEB_ROOT = os.path.join('D:\\web_log\\test_log') WEB_ROOT = os.path.join('D:\\web_log\\test_log')
...@@ -150,7 +150,7 @@ elif ENV_PROFILE == "1": ...@@ -150,7 +150,7 @@ elif ENV_PROFILE == "1":
WEB_URL = "/Web_Script/" WEB_URL = "/Web_Script/"
CORS_ORIGIN_WHITELIST = ( CORS_ORIGIN_WHITELIST = (
['http://127.0.0.1:*', 'https://10.0.17.184:*'] ['http://127.0.0.1:*', 'https://10.0.17.184:*', 'http://172.16.0.82:*']
) )
...@@ -379,10 +379,10 @@ MIDDLEWARE = [ ...@@ -379,10 +379,10 @@ MIDDLEWARE = [
CORS_ALLOW_CREDENTIALS = True CORS_ALLOW_CREDENTIALS = True
CORS_ORIGIN_ALLOW_ALL = True CORS_ORIGIN_ALLOW_ALL = True
# CORS_ORIGIN_WHITELIST = ( CORS_ORIGIN_WHITELIST = (
# ['http://127.0.0.1:*', 'http://10.10.10.137:*'] ['http://127.0.0.1:*', 'http://172.16.0.82:*']
#
# ) )
CORS_URLS_REGEX = r'^/api/.*$' CORS_URLS_REGEX = r'^/api/.*$'
CORS_ALLOW_METHODS = ( CORS_ALLOW_METHODS = (
......
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