File tree Expand file tree Collapse file tree 4 files changed +30
-6
lines changed
Expand file tree Collapse file tree 4 files changed +30
-6
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,6 @@ DATABASES:
244244DATA_DIR : /edx/var/edxapp
245245DEFAULT_COURSE_VISIBILITY_IN_CATALOG : both
246246DEFAULT_FEEDBACK_EMAIL :
[email protected] 247- DEFAULT_FILE_STORAGE : django.core.files.storage.FileSystemStorage
248247DEFAULT_FROM_EMAIL :
[email protected] 249248DEFAULT_JWT_ISSUER :
250249 AUDIENCE : lms-key
@@ -494,6 +493,11 @@ SOCIAL_SHARING_SETTINGS:
494493 DASHBOARD_TWITTER : false
495494STATIC_ROOT_BASE : /edx/var/edxapp/staticfiles
496495STATIC_URL_BASE : /static/
496+ STORAGES :
497+ default :
498+ BACKEND : django.core.files.storage.FileSystemStorage
499+ staticfiles :
500+ BACKEND : django.contrib.staticfiles.storage.StaticFilesStorage
497501STUDIO_NAME : Studio
498502STUDIO_SHORT_NAME : Studio
499503SUPPORT_SITE_LINK : ' '
Original file line number Diff line number Diff line change @@ -69,7 +69,11 @@ JWT_AUTH:
6969 JWT_PUBLIC_SIGNING_JWK_SET : ' '
7070LANGUAGE_CODE : en
7171MEDIA_STORAGE_BACKEND :
72- DEFAULT_FILE_STORAGE : django.core.files.storage.FileSystemStorage
72+ STORAGES :
73+ default :
74+ BACKEND : django.core.files.storage.FileSystemStorage
75+ staticfiles :
76+ BACKEND : django.contrib.staticfiles.storage.StaticFilesStorage
7377 MEDIA_ROOT : /edx/var/discovery/media
7478 MEDIA_URL : /media/
7579OPENEXCHANGERATES_API_KEY : ' '
@@ -91,7 +95,11 @@ SOCIAL_AUTH_EDX_OAUTH2_LOGOUT_URL: http://localhost:18000/logout
9195SOCIAL_AUTH_EDX_OAUTH2_SECRET : discovery-sso-secret
9296SOCIAL_AUTH_EDX_OAUTH2_URL_ROOT : http://127.0.0.1:8000
9397SOCIAL_AUTH_REDIRECT_IS_HTTPS : false
94- STATICFILES_STORAGE : django.contrib.staticfiles.storage.StaticFilesStorage
9598STATIC_ROOT : /edx/var/discovery/staticfiles
99+ STORAGES :
100+ default :
101+ BACKEND : django.core.files.storage.FileSystemStorage
102+ staticfiles :
103+ BACKEND : django.contrib.staticfiles.storage.StaticFilesStorage
96104TIME_ZONE : UTC
97105USERNAME_REPLACEMENT_WORKER : OVERRIDE THIS WITH A VALID USERNAME
Original file line number Diff line number Diff line change @@ -265,7 +265,6 @@ DCS_SESSION_COOKIE_SAMESITE: Lax
265265DCS_SESSION_COOKIE_SAMESITE_FORCE_ALL : true
266266DEFAULT_COURSE_VISIBILITY_IN_CATALOG : both
267267DEFAULT_FEEDBACK_EMAIL :
[email protected] 268- DEFAULT_FILE_STORAGE : django.core.files.storage.FileSystemStorage
269268DEFAULT_FROM_EMAIL :
[email protected] 270269DEFAULT_JWT_ISSUER :
271270 AUDIENCE : lms-key
@@ -580,6 +579,11 @@ SOCIAL_SHARING_SETTINGS:
580579 DASHBOARD_TWITTER : false
581580STATIC_ROOT_BASE : /edx/var/edxapp/staticfiles
582581STATIC_URL_BASE : /static/
582+ STORAGES :
583+ default :
584+ BACKEND : django.core.files.storage.FileSystemStorage
585+ staticfiles :
586+ BACKEND : django.contrib.staticfiles.storage.StaticFilesStorage
583587STUDIO_NAME : Studio
584588STUDIO_SHORT_NAME : Studio
585589SUPPORT_SITE_LINK : ' '
Original file line number Diff line number Diff line change 4242EMAIL_BACKEND = "django.core.mail.backends.filebased.EmailBackend"
4343EMAIL_FILE_PATH = "/tmp/credentials-emails"
4444
45- DEFAULT_FILE_STORAGE = os .environ .get ("DEFAULT_FILE_STORAGE" , "django.core.files.storage.FileSystemStorage" )
45+ default_file_storage = os .environ .get ("DEFAULT_FILE_STORAGE" )
46+
47+ if default_file_storage :
48+ STORAGES ["default" ]["BACKEND" ] = default_file_storage
49+
50+ staticfiles_storage = os .environ .get ("STATICFILES_STORAGE" )
51+
52+ if staticfiles_storage :
53+ STORAGES ["staticfiles" ]["BACKEND" ] = staticfiles_storage
54+
4655MEDIA_URL = os .environ .get ("MEDIA_URL" , "/media/" )
4756
48- STATICFILES_STORAGE = os .environ .get ("STATICFILES_STORAGE" , "django.contrib.staticfiles.storage.StaticFilesStorage" )
4957STATIC_URL = os .environ .get ("STATIC_URL" , "/static/" )
5058
5159# OAuth2 variables specific to social-auth/SSO login use case.
You can’t perform that action at this time.
0 commit comments