diff --git a/backend/rabbit_rescue_REST/settings_test.py b/backend/rabbit_rescue_REST/settings_test.py index 54e967e..1386cd8 100644 --- a/backend/rabbit_rescue_REST/settings_test.py +++ b/backend/rabbit_rescue_REST/settings_test.py @@ -13,7 +13,6 @@ from pathlib import Path from dotenv import load_dotenv import os -import dj_database_url # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent @@ -27,9 +26,9 @@ SECRET_KEY = os.getenv('SECRET_KEY') # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = "DEVELOPMENT" in os.environ +DEBUG = True -ALLOWED_HOSTS = [os.getenv("BACKEND_HOST"), "localhost", "127.0.0.1"] +ALLOWED_HOSTS = ["localhost", "127.0.0.1"] # This is a list of origins that are authorized to make cross-origin requests. # Cross-Origin Resource Sharing (CORS) is a mechanism that allows many @@ -94,18 +93,14 @@ # Database # https://docs.djangoproject.com/en/3.2/ref/settings/#databases -if 'SQLITE3' in os.environ: - DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': BASE_DIR / 'db.sqlite3', - } - } -else: - DATABASES = { - 'default': dj_database_url.parse(os.environ.get('DATABASE_URL', '')) +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': BASE_DIR / 'db.sqlite3', } +} + # Password validation