Skip to content

Commit

Permalink
Merge pull request #2753 from phillxnet/2740-update-to-psycopg-3
Browse files Browse the repository at this point in the history
update to latest psycopg 3 #2740
  • Loading branch information
phillxnet authored Nov 22, 2023
2 parents 84a0573 + d32ad02 commit 75d7cf6
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 75d7cf6

Please sign in to comment.