From 696b7d3cfd76dd2b66079665d52fbf34e11e2d08 Mon Sep 17 00:00:00 2001 From: Topvennie Date: Mon, 11 Mar 2024 11:45:23 +0100 Subject: [PATCH] chore: linter --- backend/ypovoli/settings.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/ypovoli/settings.py b/backend/ypovoli/settings.py index 38931569..2d09c8f3 100644 --- a/backend/ypovoli/settings.py +++ b/backend/ypovoli/settings.py @@ -10,8 +10,8 @@ https://docs.djangoproject.com/en/5.0/ref/settings/ """ -import os from datetime import timedelta +from os import environ from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. @@ -140,9 +140,9 @@ } REDIS_CUSTOM = { - "host": os.environ.get("REDIS_IP", "localhost"), - "port": os.environ.get("REDIS_PORT", 6379), - "password": os.environ.get("REDIS_PASSWORD", ""), + "host": environ.get("REDIS_IP", "localhost"), + "port": environ.get("REDIS_PORT", 6379), + "password": environ.get("REDIS_PASSWORD", ""), "db_django": 0, "db_celery": 1, }