mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: connection error when signing in with code
This commit is contained in:
parent
5190ea7280
commit
b40fd4bbc2
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user