Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
automatedtestplatform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
automatedtestplatform
Commits
aebf8021
Commit
aebf8021
authored
Oct 26, 2022
by
王英豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9d60be81
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
settings.cpython-37.pyc
AutomatedTestPlatform/__pycache__/settings.cpython-37.pyc
+0
-0
settings.py
AutomatedTestPlatform/settings.py
+6
-6
No files found.
AutomatedTestPlatform/__pycache__/settings.cpython-37.pyc
View file @
aebf8021
No preview for this file type
AutomatedTestPlatform/settings.py
View file @
aebf8021
...
...
@@ -129,7 +129,7 @@ if ENV_PROFILE == "SERVER":
elif
ENV_PROFILE
==
"1"
:
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
(
'D:
\\
web_log
\\
test_log'
)
...
...
@@ -150,7 +150,7 @@ elif ENV_PROFILE == "1":
WEB_URL
=
"/Web_Script/"
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 = [
CORS_ALLOW_CREDENTIALS
=
True
CORS_ORIGIN_ALLOW_ALL
=
True
#
CORS_ORIGIN_WHITELIST = (
# ['http://127.0.0.1:*', 'http://10.10.10.137
:*']
#
#
)
CORS_ORIGIN_WHITELIST
=
(
[
'http://127.0.0.1:*'
,
'http://172.16.0.82
:*'
]
)
CORS_URLS_REGEX
=
r'^/api/.*$'
CORS_ALLOW_METHODS
=
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment