Skip to content

Commit

Permalink
Merge pull request #449 from openstates/develop
Browse files Browse the repository at this point in the history
2023.10.17
  • Loading branch information
NewAgeAirbender authored Oct 17, 2023
2 parents d3c61d0 + f3730b8 commit 01933b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@
"DATABASE_URL", "postgis://openstates:openstates@db:5432/openstatesorg"
)
DATABASES = {"default": dj_database_url.parse(DATABASE_URL)}
if "OPTIONS" not in DATABASES:
DATABASES["default"]["OPTIONS"] = {"application_name": "openstates_django"}
else:
DATABASES["default"]["OPTIONS"]["application_name"] = "openstates_django"
CONN_MAX_AGE = 60

if "CACHE_URL" in os.environ:
Expand Down

0 comments on commit 01933b0

Please sign in to comment.