Skip to content

Commit 8910fdb

Browse files
Johnetordoffcslzchen
authored andcommitted
Update postgres backend and remove failover router for Django 3 (#10011)
Co-authored-by: John Tordoff <>
1 parent 88f1345 commit 8910fdb

File tree

6 files changed

+1
-161
lines changed

6 files changed

+1
-161
lines changed

api/base/settings/defaults.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
DATABASES = {
2323
'default': {
2424
'CONN_MAX_AGE': 0,
25-
'ENGINE': 'osf.db.backends.postgresql', # django.db.backends.postgresql
25+
'ENGINE': 'django.db.backends.postgresql',
2626
'NAME': os.environ.get('OSF_DB_NAME', 'osf'),
2727
'USER': os.environ.get('OSF_DB_USER', 'postgres'),
2828
'PASSWORD': os.environ.get('OSF_DB_PASSWORD', ''),
@@ -35,7 +35,6 @@
3535
},
3636
}
3737

38-
DATABASE_ROUTERS = ['osf.db.router.PostgreSQLFailoverRouter', ]
3938
PASSWORD_HASHERS = [
4039
'django.contrib.auth.hashers.BCryptSHA256PasswordHasher',
4140
'django.contrib.auth.hashers.BCryptPasswordHasher',

osf/db/__init__.py

Whitespace-only changes.

osf/db/backends/__init__.py

Whitespace-only changes.

osf/db/backends/postgresql/__init__.py

Whitespace-only changes.

osf/db/backends/postgresql/base.py

Lines changed: 0 additions & 68 deletions
This file was deleted.

osf/db/router.py

Lines changed: 0 additions & 91 deletions
This file was deleted.

0 commit comments

Comments
 (0)