Changeset - e841dd620452
[Not reviewed]
2019
0 1 0
Joel Addison - 2 years ago 2022-03-20 00:40:23
joel@addison.net.au
Update settings to support LA Deployment
1 file changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
pinaxcon/settings.py
Show inline comments
...
 
@@ -123,6 +123,6 @@ USE_TZ = True
 

	
 
MEDIA_ROOT = os.path.join(PACKAGE_ROOT, "site_media", "media")
 
MEDIA_ROOT = os.environ.get("MEDIA_ROOT", os.path.join(PACKAGE_ROOT, "site_media", "media"))
 
MEDIA_URL = "/site_media/media/"
 

	
 
STATIC_ROOT = os.path.join(PROJECT_ROOT, 'static/build')
 
STATIC_ROOT = os.path.join(PROJECT_ROOT, 'static', 'build')
 
STATIC_URL = '/static/build/'
...
 
@@ -130,3 +130,3 @@ STATIC_URL = '/static/build/'
 
STATICFILES_DIRS = [
 
    os.path.join(PROJECT_ROOT, 'static/src'),
 
    os.path.join(PROJECT_ROOT, 'static', 'src'),
 
]
...
 
@@ -423,3 +423,3 @@ if 'SAML_CONFIG_LOADER' in os.environ:
 

	
 
DEFAULT_FILE_STORAGE = 'gapc_storage.storage.GoogleCloudStorage'
 
DEFAULT_FILE_STORAGE = os.environ.get('DEFAULT_FILE_STORAGE', 'gapc_storage.storage.GoogleCloudStorage')
 
GAPC_STORAGE = {
0 comments (0 inline, 0 general)