Make static asset location consistent across all deployments (#12819)

This commit is contained in:
Shane McDonald
2022-09-02 13:12:06 -04:00
committed by GitHub
parent 1afa49f3ff
commit 260e1d4f2d
2 changed files with 1 additions and 8 deletions

View File

@@ -108,10 +108,6 @@ AWX_DISABLE_TASK_MANAGERS = False
if 'sqlite3' not in DATABASES['default']['ENGINE']: # noqa
DATABASES['default'].setdefault('OPTIONS', dict()).setdefault('application_name', f'{CLUSTER_HOST_ID}-{os.getpid()}-{" ".join(sys.argv)}'[:63]) # noqa
# Everywhere else we use /var/lib/awx/public/static/ - but this requires running collectstatic.
# This makes the browsable API work in the dev env without any additional steps.
STATIC_ROOT = os.path.join(BASE_DIR, 'public', 'static')
# If any local_*.py files are present in awx/settings/, use them to override
# default settings for development. If not present, we can still run using
# only the defaults.