Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
d3a9d7f0
Commit
d3a9d7f0
authored
Apr 09, 2012
by
David Ormsbee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use ENV_ROOT instead of BASE_DIR
parent
2aafd966
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
envs/aws.py
+2
-2
No files found.
envs/aws.py
View file @
d3a9d7f0
...
...
@@ -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'
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment