Skip to content

Commit 2d57882

Browse files
authored
temp disable db routers (#124)
1 parent b3c9213 commit 2d57882

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sensorsafrica/settings.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@
112112

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

115-
READ_DATABASE_URLS = os.getenv("SENSORSAFRICA_READ_DATABASE_URLS", DATABASE_URL).split(",")
115+
# READ_DATABASE_URLS = os.getenv("SENSORSAFRICA_READ_DATABASE_URLS", DATABASE_URL).split(",")
116116

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

120-
DATABASE_ROUTERS = ["sensorsafrica.router.ReplicaRouter", ]
120+
# DATABASE_ROUTERS = ["sensorsafrica.router.ReplicaRouter", ]
121121

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

0 commit comments

Comments
 (0)