Skip to content

Commit

Permalink
feat: switch to Postgres (#3638)
Browse files Browse the repository at this point in the history
  • Loading branch information
rpcross authored Sep 27, 2023
1 parent f5c0016 commit 33b711e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions backend/mlarchive/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,10 @@

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'ENGINE': 'django.db.backends.postgresql',
'NAME': env("DATABASES_NAME"),
'USER': env("DATABASES_USER"),
'PASSWORD': env("DATABASES_PASSWORD"),
# 'HOST': '127.0.0.1',
'OPTIONS': {'charset': 'utf8mb4'},
'TEST': {'CHARSET': 'utf8mb4'}
'PASSWORD': env("DATABASES_PASSWORD")
}
}

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ gunicorn==20.1.0
html5lib
jedi==0.17.2 # 0.18 has bug with ipython
lxml>=3.3.5
mysqlclient==2.1.1
mock>=2.0.0
mozilla-django-oidc==2.0.0
passlib
psycopg==3.1.12
pymemcache==3.5.2
pyopenssl
pyquery
Expand Down

0 comments on commit 33b711e

Please sign in to comment.