Have settings/common.py attempt to import a settings/aws.py to allow keys to be stored outside of github
parent
a62d988249
commit
30c72f07e3
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue