Skip to content

Commit

Permalink
update: rm DB router
Browse files Browse the repository at this point in the history
  • Loading branch information
thepsalmist committed Sep 11, 2024
1 parent 0a1d3e9 commit fb951e4
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions sensorsafrica/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,6 @@

DATABASES = {"default": dj_database_url.parse(DATABASE_URL), }

READ_DATABASE_URLS = os.getenv("SENSORSAFRICA_READ_DATABASE_URLS", DATABASE_URL).split(",")

for index, read_database_url in enumerate(READ_DATABASE_URLS,start=1):
DATABASES[f"read_replica_{index}"] = dj_database_url.parse(read_database_url)

# DATABASE_ROUTERS = ["sensorsafrica.router.ReplicaRouter", ]

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

Expand Down Expand Up @@ -200,9 +193,6 @@


# Put fenstaub migrations into sensorsafrica
# MIGRATION_MODULES = {
# "sensors": "feinstaub.sensors.migrations"
# }
MIGRATION_MODULES = {
"sensors": "sensorsafrica.openstuttgart.feinstaub.sensors.migrations"
}
Expand Down

0 comments on commit fb951e4

Please sign in to comment.