Skip to content

Commit

Permalink
Fix test_default_settings
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealHaoLiu committed Mar 6, 2024
1 parent 67024ed commit 6b8d24b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"type": "debugpy",
"request": "launch",
"program": "manage.py",
"args": ["runserver", "0.0.0.0:8052"],
"args": ["runserver", "127.0.0.1:8052"],
"django": true,
"preLaunchTask": "stop awx-uwsgi",
"postDebugTask": "start awx-uwsgi"
Expand All @@ -96,7 +96,7 @@
"type": "debugpy",
"request": "launch",
"program": "manage.py",
"args": ["runserver_plus", "0.0.0.0:8052"],
"args": ["runserver_plus", "127.0.0.1:8052"],
"django": true,
"preLaunchTask": "stop awx-uwsgi and install Werkzeug",
"postDebugTask": "start awx-uwsgi"
Expand Down
5 changes: 3 additions & 2 deletions awx/settings/development.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
# Allows user to trigger task managers directly for debugging and profiling purposes.
# Only works in combination with settings.SETTINGS_MODULE == 'awx.settings.development'
AWX_DISABLE_TASK_MANAGERS = False

# Needed for launching runserver in debug mode
CSRF_TRUSTED_ORIGINS = ["https://localhost:8043"]
# ======================!!!!!!! FOR DEVELOPMENT ONLY !!!!!!!=================================

# Store a snapshot of default settings at this point before loading any
Expand Down Expand Up @@ -117,5 +120,3 @@
set_application_name(DATABASES, CLUSTER_HOST_ID) # NOQA

del set_application_name

CSRF_TRUSTED_ORIGINS = ["https://localhost:8043"] # TODO: fixme

0 comments on commit 6b8d24b

Please sign in to comment.