diff options
author | Benjamin Copeland <ben.copeland@linaro.org> | 2018-05-18 15:56:01 +0000 |
---|---|---|
committer | Benjamin Copeland <ben.copeland@linaro.org> | 2018-05-18 16:08:42 +0000 |
commit | f2f89fcb074ae2b742590f8f870ec94225c775a8 (patch) | |
tree | f378d420e455a38fb9abb86349592d977a503908 | |
parent | b5a105b5b43f3f72b7758553bd203b6ad99c0328 (diff) |
Revert "Settings: Remove legacy folder creation"
This reverts commit b5a105b5b43f3f72b7758553bd203b6ad99c0328 due to showing the sampleroot folder.
Change-Id: Ibca02b5f6f7849f457bbe346b2de448cc1ef9e6e
Reviewed-on: https://review.linaro.org/25419
Reviewed-by: Kelley Spoon <kelley.spoon@linaro.org>
Reviewed-by: Benjamin Copeland <ben.copeland@linaro.org>
-rw-r--r-- | settings_production.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/settings_production.py b/settings_production.py index f37bb5f..5350873 100644 --- a/settings_production.py +++ b/settings_production.py @@ -15,9 +15,15 @@ DATABASES = { } ALLOWED_HOSTS_FILE = os.path.join(DEPLOYMENT_DIR, "allowed_hosts.txt") +SERVED_PATHS = [os.path.join(DEPLOYMENT_DIR, 'www')] +UPLOAD_PATH = os.path.join(DEPLOYMENT_DIR, 'uploads') IP2LOCATION_FILE = os.path.join( DEPLOYMENT_DIR, 'IP-COUNTRY-REGION-CITY-ISP.BIN') +for p in SERVED_PATHS + [UPLOAD_PATH]: + if not os.path.exists(p): + os.mkdir(p) + # allow local override of default page styling if os.path.exists(os.path.join(DEPLOYMENT_DIR, 'header_override.html')): BASE_PAGE = 'header_override.html' |