docs: Document how STATIC_URL_BASE is used (#36952)

This commit is contained in:
Tim McCormack
2025-06-25 18:09:10 -04:00
committed by GitHub
parent 6e390a44db
commit fb6eaf5141
2 changed files with 8 additions and 0 deletions

View File

@@ -1196,6 +1196,10 @@ COURSE_METADATA_EXPORT_BUCKET = ''
ALTERNATE_WORKER_QUEUES = 'lms'
# .. setting_name: STATIC_URL_BASE
# .. setting_default: "/static/"
# .. setting_description: The CMS uses this to construct ``STATIC_URL`` by appending
# a slash (if needed) and then ``studio/``.
STATIC_URL_BASE = '/static/'
X_FRAME_OPTIONS = 'DENY'

View File

@@ -1920,6 +1920,10 @@ MANAGERS = ADMINS
# Static content
STATIC_URL = '/static/'
STATIC_ROOT = os.environ.get('STATIC_ROOT_LMS', ENV_ROOT / "staticfiles")
# .. setting_name: STATIC_URL_BASE
# .. setting_default: "/static/"
# .. setting_description: The LMS uses this to construct ``STATIC_URL`` by appending
# a slash (if needed).
STATIC_URL_BASE = '/static/'
STATICFILES_DIRS = [