Skip to content

Commit

Permalink
update to latest psycopg 3 rockstor#2740
Browse files Browse the repository at this point in the history
Update to latest psycopg 3.1.13 from psycopg2 2.8.6.
## Includes
- Update settings.py database ENGINE configs:
from: django.db.backends.postgresql_psycopg2
to:  django.db.backends.postgresql
- Incidental update of certifi (2023.7.22 -> 2023.11.17)
  • Loading branch information
phillxnet committed Nov 21, 2023
1 parent 84a0573 commit d32ad02
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 28 deletions.
47 changes: 23 additions & 24 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ django-pipeline = "*"
python-engineio = "==4.8.0"
python-socketio = "==5.9.0"
dbus-python = "*"
# N.B. officially Django >= 2.2.1 is required for psycopg2 >= 2.8
psycopg2 = "==2.8.6" # last Python 2.7 version, PostgreSQL 13 errorcodes map?
psycopg = "~3"
psycogreen = "==1.0"
gevent = "*" # can be an extra dependency to gunicorn.
gunicorn = "*"
Expand Down
4 changes: 2 additions & 2 deletions src/rockstor/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@

DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql_psycopg2",
"ENGINE": "django.db.backends.postgresql",
"NAME": "storageadmin", # Or path to database file if using sqlite3.
"USER": "rocky", # Not used with sqlite3.
"PASSWORD": "rocky", # Not used with sqlite3.
"HOST": "", # Set to empty string for localhost. Not used with sqlite3.
"PORT": "", # Set to empty string for default. Not used with sqlite3.
},
"smart_manager": {
"ENGINE": "django.db.backends.postgresql_psycopg2",
"ENGINE": "django.db.backends.postgresql",
"NAME": "smartdb",
"USER": "rocky",
"PASSWORD": "rocky",
Expand Down

0 comments on commit d32ad02

Please sign in to comment.