diff --git a/config/django/base.py b/config/django/base.py index 3e2bf64d..94ea9b4e 100644 --- a/config/django/base.py +++ b/config/django/base.py @@ -109,6 +109,7 @@ DATABASES = { "default": env.db("DATABASE_URL", default="postgres:///styleguide_example"), } +DATABASES["default"]["ATOMIC_REQUESTS"] = True if os.environ.get("GITHUB_WORKFLOW"): DATABASES = { @@ -121,7 +122,6 @@ "PORT": "5432", } } -DATABASES["default"]["ATOMIC_REQUESTS"] = True # Password validation # https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators