Skip to content

Commit

Permalink
fix: Help extensions understand the DB engine
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Christie committed Jan 22, 2025
1 parent 7424673 commit 7ed3371
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fragalysis/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,13 @@
}
}

# Telling django extensions (reset_db for example)
# that our the django prometheus engine is a postgresql engine...
# (otherwise it'll complain that it doesn't know how to handle it)
DJANGO_EXTENSIONS_RESET_DB_POSTGRESQL_ENGINES = [
"django_prometheus.db.backends.postgresql"
]

CHEMCENTRAL_DB_NAME = os.environ.get("CHEMCENT_DB_NAME", "UNKNOWN")
if CHEMCENTRAL_DB_NAME != "UNKNOWN":
DATABASES["chemcentral"] = {
Expand Down

0 comments on commit 7ed3371

Please sign in to comment.