Allow unsafe async and make more things async

This commit is contained in:
2022-10-12 07:22:22 +01:00
parent 5bf65e3c90
commit 22df27178b
8 changed files with 215 additions and 25 deletions

View File

@@ -1,6 +1,9 @@
import os
import stripe
from django.conf import settings
os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true"
# from redis import StrictRedis
# r = StrictRedis(unix_socket_path="/var/run/redis/redis.sock", db=0)