env and settings now loading, need to work on mocking next

This commit is contained in:
Oly 2017-01-26 09:07:38 +00:00
parent 37ab2f6532
commit 097a637682
2 changed files with 5 additions and 3 deletions

View File

@ -262,7 +262,7 @@ ADMIN_URL = '^admin/'
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
payment_providers = { PAYMENT_PROVIDERS = {
'braintree': { 'braintree': {
'mode': 'sandbox', 'mode': 'sandbox',
'credentials': { 'credentials': {
@ -275,7 +275,7 @@ payment_providers = {
"mode": "sandbox", # sandbox or live "mode": "sandbox", # sandbox or live
'credentials': { 'credentials': {
"mode": "sandbox", # sandbox or live "mode": "sandbox", # sandbox or live
"client_id": end('PAYPAL_CLIENT_ID'), "client_id": env('PAYPAL_CLIENT_ID'),
"client_secret": env('PAYPAL_CLIENT_SECRET')} "client_secret": env('PAYPAL_CLIENT_SECRET')}
}, },
'gocardless':{ 'gocardless':{

View File

@ -3,7 +3,9 @@ import pytz
import gocardless import gocardless
import braintree import braintree
from django.conf.settings import payment_providers from django.conf import settings
print(dir(settings))
payment_providers = settings.PAYMENT_PROVIDERS
# import gocardless_pro # import gocardless_pro
# import paypalrestsdk as paypal # import paypalrestsdk as paypal