diff --git a/adaptive_hockey_federation/manage.py b/adaptive_hockey_federation/manage.py index 1cd41d10..2c2dc592 100644 --- a/adaptive_hockey_federation/manage.py +++ b/adaptive_hockey_federation/manage.py @@ -3,21 +3,13 @@ import os import sys -import environ - - -env = environ.Env() - -DEBUG = os.environ.get("DEBUG") - -switch_prod_dev = {"True": "dev", "False": "prod"} def main(): """Run administrative tasks.""" os.environ.setdefault( "DJANGO_SETTINGS_MODULE", - f"core.config.{switch_prod_dev[str(DEBUG)]}_settings") + "core.config.dev_settings") try: from django.core.management import execute_from_command_line except ImportError as exc: diff --git a/requirements/production.txt b/requirements/production.txt index 94721d7e..6cb07cd8 100644 --- a/requirements/production.txt +++ b/requirements/production.txt @@ -8,6 +8,7 @@ click-plugins==1.1.1 ; python_version >= "3.11" and python_version < "4.0" click-repl==0.3.0 ; python_version >= "3.11" and python_version < "4.0" click==8.1.7 ; python_version >= "3.11" and python_version < "4.0" colorama==0.4.6 ; python_version >= "3.11" and python_version < "4.0" and (platform_system == "Windows" or sys_platform == "win32") +django-debug-toolbar==4.4.2 ; python_version >= "3.11" and python_version < "4.0" django-environ==0.11.2 ; python_version >= "3.11" and python_version < "4" django-extensions==3.2.3 ; python_version >= "3.11" and python_version < "4.0" django-phonenumber-field[phonenumbers]==7.3.0 ; python_version >= "3.11" and python_version < "4.0"