drugs/core/__init__.py

15 lines
355 B
Python
Raw Normal View History

2023-10-17 20:00:25 +00:00
import os
2024-01-01 18:21:27 +00:00
# import stripe
# from django.conf import settings
2023-10-17 20:00:25 +00:00
os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true"
# from redis import StrictRedis
# r = StrictRedis(unix_socket_path="/var/run/redis/redis.sock", db=0)
2024-01-01 18:21:27 +00:00
# if settings.STRIPE_TEST:
# stripe.api_key = settings.STRIPE_API_KEY_TEST
# else:
# stripe.api_key = settings.STRIPE_API_KEY_PROD