Skip to content

Commit

Permalink
Merge pull request #361 from HackSoftware/replace_databases_default_a…
Browse files Browse the repository at this point in the history
…tomic_requests

Maintaining Query Count Stability in GitHub Workflow with DATABASES Modification
  • Loading branch information
RadoRado authored May 12, 2024
2 parents a41476a + 171806f commit f4dd56b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/django/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@
DATABASES = {
"default": env.db("DATABASE_URL", default="postgres:///styleguide_example"),
}
DATABASES["default"]["ATOMIC_REQUESTS"] = True

if os.environ.get("GITHUB_WORKFLOW"):
DATABASES = {
Expand All @@ -122,6 +121,7 @@
"PORT": "5432",
}
}
DATABASES["default"]["ATOMIC_REQUESTS"] = True

# Password validation
# https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators
Expand Down

0 comments on commit f4dd56b

Please sign in to comment.