From 04628380607302d2444ce497c319df53041dac6d Mon Sep 17 00:00:00 2001 From: Heinz-Alexander Fuetterer Date: Thu, 5 Oct 2023 10:34:33 +0200 Subject: [PATCH] chore: enable debug mode per env, default false --- .github/workflows/ci.yml | 2 ++ testing/config/settings/base.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2f2317304d..40a1516719 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -120,6 +120,8 @@ jobs: - name: Run end-to-end tests run: pytest -p randomly -p no:cacheprovider --reuse-db -m e2e if: matrix.python-version == '3.11' && matrix.db-backend == 'postgres' + env: + DJANGO_DEBUG: True coveralls: name: Indicate completion to coveralls diff --git a/testing/config/settings/base.py b/testing/config/settings/base.py index 270ec4ea20..e39edf6c80 100644 --- a/testing/config/settings/base.py +++ b/testing/config/settings/base.py @@ -2,7 +2,7 @@ from django.utils.translation import gettext_lazy as _ -DEBUG = False +DEBUG = os.getenv("DJANGO_DEBUG", False) == "True" TEMPLATE_DEBUG = False DEBUG_LOGGING = False