From 293024b860f6d8cc17959c177386b524e96a93bd Mon Sep 17 00:00:00 2001 From: Oscar Chan Date: Wed, 31 Aug 2022 00:28:18 -0700 Subject: [PATCH 1/2] Add static files dirs --- settings/base.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/settings/base.py b/settings/base.py index 701b34a..28d9784 100644 --- a/settings/base.py +++ b/settings/base.py @@ -139,12 +139,9 @@ STATIC_URL = '/static/' # Additional locations of static files -# STATICFILES_DIRS = ( -# # Put strings here, like "/home/html/static" or "C:/www/django/static". -# # Always use forward slashes, even on Windows. -# # Don't forget to use absolute paths, not relative paths. -# os.path.join(WORKSPACE_DJANGO_ROOT, 'static/'), -# ) +STATICFILES_DIRS = [ + os.path.join(WORKSPACE_DJANGO_ROOT, "static"), +] # List of finder classes that know how to find static files in # various locations. From 992954b6e4a60179bc6527857c22022382cc1726 Mon Sep 17 00:00:00 2001 From: Oscar Chan Date: Wed, 31 Aug 2022 00:29:27 -0700 Subject: [PATCH 2/2] Allow tbp berkeley url host --- settings/production.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/settings/production.py b/settings/production.py index 79e44fd..b6495f9 100644 --- a/settings/production.py +++ b/settings/production.py @@ -44,7 +44,9 @@ INDREL_SPAM_TO = 'spam@' + HOSTNAME ALLOWED_HOSTS = [ - 'localhost', 'tbp-dev.apphost.ocf.berkeley.edu' + 'tbp.apphost.ocf.berkeley.edu', + 'tbp-dev.apphost.ocf.berkeley.edu', + 'tbp.berkeley.edu' ] # Static files (CSS, JavaScript, Images)