Have settings/common.py attempt to import a settings/aws.py to allow keys to be stored outside of github

pull/1/head
Raymond Yee 2012-05-03 16:48:51 -07:00
parent a62d988249
commit 30c72f07e3
1 changed files with 14 additions and 7 deletions

View File

@ -256,13 +256,6 @@ EBOOK_NOTIFICATIONS_JOB = {
# by default, in common, we don't turn any of the celerybeat jobs on -- turn them on in the local settings file
# Amazon credentials (for fps)
AWS_ACCESS_KEY = ''
AWS_SECRET_ACCESS_KEY = ''
# Amazon FPS Credentials
FPS_ACCESS_KEY = ''
FPS_SECRET_KEY = ''
# set -- sandbox or production Amazon FPS?
AMAZON_FPS_HOST = "fps.sandbox.amazonaws.com"
@ -270,3 +263,17 @@ AMAZON_FPS_HOST = "fps.sandbox.amazonaws.com"
# amazon or paypal for now.
PAYMENT_PROCESSOR = 'amazon'
# now import AWS/FPS keys from a separate file, if it exists
# Amazon FPS Credentials
#FPS_ACCESS_KEY = ''
#FPS_SECRET_KEY = ''
try:
from regluit.settings.aws import FPS_ACCESS_KEY, FPS_SECRET_KEY
except:
pass