Merge pull request #804 from makeplane/fix/magic_sign_in

fix: connection error when signing in with code
This commit is contained in:
Vamsi Kurama 2023-04-14 16:56:20 +05:30 committed by GitHub
commit 3a0c5bab76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,8 +6,10 @@ from urllib.parse import urlparse
def redis_instance():
# connect to redis
if settings.DOCKERIZED or os.environ.get(
"DJANGO_SETTINGS_MODULE", "plane.settings.local"
if (
settings.DOCKERIZED
or os.environ.get("DJANGO_SETTINGS_MODULE", "plane.settings.production")
== "plane.settings.local"
):
ri = redis.Redis.from_url(settings.REDIS_URL, db=0)
else: