diff --git a/bro_hub/celery.py b/bro_hub/celery.py index a1f960b..aa3e856 100644 --- a/bro_hub/celery.py +++ b/bro_hub/celery.py @@ -1,14 +1,5 @@ -import os - from celery import Celery -from bro_hub.settings.base import ENVIRONMENT - -if ENVIRONMENT == "production": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bro_hub.settings.production") -elif ENVIRONMENT == "development": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bro_hub.settings.development") - app = Celery("bro_hub") # Using a string here means the worker doesn't have to serialize diff --git a/bro_hub/settings.py b/bro_hub/settings.py index 32327f1..7d558a0 100644 --- a/bro_hub/settings.py +++ b/bro_hub/settings.py @@ -20,10 +20,6 @@ load_dotenv() - -# Options are development and production -ENVIRONMENT = "development" - FIELD_ENCRYPTION_KEY = os.getenv("FIELD_ENCRYPTION_KEY") TIME_ZONE = "CET" diff --git a/manage.py b/manage.py index e702a52..775d4ac 100644 --- a/manage.py +++ b/manage.py @@ -1,18 +1,10 @@ #!/usr/bin/env python """Django's command-line utility for administrative tasks.""" -import os import sys -from bro_hub.settings.base import ENVIRONMENT - def main(): """Run administrative tasks.""" - if ENVIRONMENT == "production": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bro_hub.settings.production") - elif ENVIRONMENT == "development": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bro_hub.settings.development") - try: from django.core.management import execute_from_command_line except ImportError as exc: diff --git a/pyproject.toml b/pyproject.toml index f8cf092..1a76063 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,7 @@ packages = ["bro_hub", "api", "gmn", "gmw"] [tool.pytest.ini_options] testpaths = ["bro_hub", "api", "gmn", "gmw"] log_level = "DEBUG" +django_find_project = false DJANGO_SETTINGS_MODULE = "bro_hub.settings" [tool.coverage.run]