From e172c2b8d5baf10c05dd7289a48e0f2b7ff65ba0 Mon Sep 17 00:00:00 2001 From: Szilvia Csernusne Berczes Date: Mon, 27 May 2024 18:32:09 +0200 Subject: [PATCH] update settings for backend tests --- backend/rabbit_rescue_REST/settings_test.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/backend/rabbit_rescue_REST/settings_test.py b/backend/rabbit_rescue_REST/settings_test.py index 1386cd8..759e59a 100644 --- a/backend/rabbit_rescue_REST/settings_test.py +++ b/backend/rabbit_rescue_REST/settings_test.py @@ -1,15 +1,3 @@ -""" -Django settings for rabbit_rescue_REST project. - -Generated by 'django-admin startproject' using Django 3.2.20. - -For more information on this file, see -https://docs.djangoproject.com/en/3.2/topics/settings/ - -For the full list of settings and their values, see -https://docs.djangoproject.com/en/3.2/ref/settings/ -""" - from pathlib import Path from dotenv import load_dotenv import os @@ -23,7 +11,7 @@ # See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = os.getenv('SECRET_KEY') +SECRET_KEY = os.environ.get('SECRET_KEY') # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True