Initial commit

This commit is contained in:
2022-10-12 07:22:22 +01:00
commit 5b2b77efd3
77 changed files with 2156 additions and 0 deletions

10
core/__init__.py Normal file
View File

@@ -0,0 +1,10 @@
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