From f6509a68589293b1536d7efddd93054d06e511fa Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Mon, 9 Apr 2012 16:13:37 -0400 Subject: [PATCH] use ENV_ROOT instead of BASE_DIR --- envs/aws.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/envs/aws.py b/envs/aws.py index 8e2410b7f6..f113dca6ca 100644 --- a/envs/aws.py +++ b/envs/aws.py @@ -20,7 +20,7 @@ DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage' ########################### NON-SECURE ENV CONFIG ############################## # Things like server locations, ports, etc. -with open(BASE_DIR / "env.json") as env_file: +with open(ENV_ROOT / "env.json") as env_file: ENV_TOKENS = json.load(env_file) SITE_NAME = ENV_TOKENS['SITE_NAME'] # "extstage.mitx.mit.edu" @@ -35,7 +35,7 @@ CACHES = ENV_TOKENS['CACHES'] ############################## SECURE AUTH ITEMS ############################### # Secret things: passwords, access keys, etc. -with open(BASE_DIR / "auth.json") as auth_file: +with open(ENV_ROOT / "auth.json") as auth_file: AUTH_TOKENS = json.load(auth_file) SECRET_KEY = AUTH_TOKENS['SECRET_KEY']