diff --git a/config/settings.py b/config/settings.py index b43d16b..a57b519 100644 --- a/config/settings.py +++ b/config/settings.py @@ -23,7 +23,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'b8fi9=f-qj=@-#1iru34-f@a6pzfysgrf(1n_&d=ur%!1w$q*w' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = True if os.getenv("DEBUG") == "True" else False ALLOWED_HOSTS = ["localhost", "test.ducoterra.net"] diff --git a/k8s/ingress.yaml b/k8s/ingress.yaml index 3c6df89..b3c2a89 100644 --- a/k8s/ingress.yaml +++ b/k8s/ingress.yaml @@ -32,7 +32,7 @@ spec: - match: Host(`test.ducoterra.net`) kind: Rule services: - - name: test-web + - name: test port: 80 --- @@ -48,7 +48,7 @@ spec: - match: Host(`test.ducoterra.net`) kind: Rule services: - - name: test-web + - name: test port: 80 middlewares: - name: httpsredirect \ No newline at end of file diff --git a/manage.py b/manage.py index 58c5f10..36c1b4b 100755 --- a/manage.py +++ b/manage.py @@ -5,6 +5,7 @@ import sys def main(): + os.environ.setdefault('DEBUG', 'True') os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings') try: from django.core.management import execute_from_command_line