File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5757 "django.contrib.auth.middleware.AuthenticationMiddleware" ,
5858 "django.contrib.messages.middleware.MessageMiddleware" ,
5959 "django.middleware.clickjacking.XFrameOptionsMiddleware" ,
60- 'whitenoise.middleware.WhiteNoiseMiddleware' ,
6160]
6261
6362ROOT_URLCONF = "main.urls"
159158USE_L10N = True
160159USE_TZ = True
161160
162- STATICFILES_LOCATION = "static"
163- STATIC_URL = "/static/"
161+ STATICFILES_LOCATION = 'static'
162+ STATIC_URL = os .environ .get ("STATIC_URL" , "static/" )
163+ STATIC_ROOT = os .environ .get ("STATIC_ROOT" ,
164+ os .path .join (BASE_DIR , "staticfiles" ))
164165STATICFILES_DIRS = [os .path .join (BASE_DIR , "static" ), ]
165- STATIC_ROOT = os .path .join (BASE_DIR , "staticfiles" )
166- STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
167166
168167MEDIAFILES_LOCATION = "media"
169- MEDIA_URL = " /media/"
168+ MEDIA_URL = os . environ . get ( "MEDIA_URL" , " /media/")
170169MEDIA_ROOT = os .path .join (BASE_DIR , "media" )
171170SLACK_ENABLED = os .environ .get ("SLACK_ENABLED" ) == 'True'
172171
Original file line number Diff line number Diff line change @@ -55,4 +55,3 @@ traitlets==5.0.5
5555urllib3 == 1.25.10
5656wcwidth == 0.2.5
5757webencodings == 0.5.1
58- whitenoise == 5.2.0
You can’t perform that action at this time.
0 commit comments