You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
278 B
Python
11 lines
278 B
Python
2 years ago
|
import stripe
|
||
|
from django.conf import settings
|
||
|
from redis import StrictRedis
|
||
|
|
||
|
r = StrictRedis(unix_socket_path="/var/run/redis/redis.sock", db=0)
|
||
|
|
||
|
if settings.STRIPE_TEST:
|
||
|
stripe.api_key = settings.STRIPE_API_KEY_TEST
|
||
|
else:
|
||
|
stripe.api_key = settings.STRIPE_API_KEY_PROD
|