diff --git a/adaptive_hockey_federation/core/config/base_settings.py b/adaptive_hockey_federation/core/config/base_settings.py index 20d55d64..ba753a99 100644 --- a/adaptive_hockey_federation/core/config/base_settings.py +++ b/adaptive_hockey_federation/core/config/base_settings.py @@ -1,5 +1,4 @@ from pathlib import Path -from re import DEBUG import environ from django.contrib.messages import constants as messages diff --git a/adaptive_hockey_federation/manage.py b/adaptive_hockey_federation/manage.py index cb57f050..1cd41d10 100644 --- a/adaptive_hockey_federation/manage.py +++ b/adaptive_hockey_federation/manage.py @@ -5,26 +5,19 @@ import sys import environ -from adaptive_hockey_federation.core.config.base_settings import BASE_DIR env = environ.Env() - -env.read_env(BASE_DIR.parent / ".env") - DEBUG = os.environ.get("DEBUG") - -print(f"{DEBUG=}") - switch_prod_dev = {"True": "dev", "False": "prod"} -print(switch_prod_dev[str(DEBUG)]) def main(): """Run administrative tasks.""" - os.environ.setdefault("DJANGO_SETTINGS_MODULE", - f"core.config.{switch_prod_dev[str(DEBUG)]}_settings") + os.environ.setdefault( + "DJANGO_SETTINGS_MODULE", + f"core.config.{switch_prod_dev[str(DEBUG)]}_settings") try: from django.core.management import execute_from_command_line except ImportError as exc: