Update to Django 4.2 and psycopg3 #7897

Closed
opened 2025-12-29 20:29:40 +01:00 by adam · 1 comment
Owner

Originally created by @arthanson on GitHub (Apr 12, 2023).

Originally assigned to: @arthanson on GitHub.

Proposed Changes

Django 4.2 has been released and it has support for the new psycopg3 (instead of the current psycopg2).

Also note: https://docs.djangoproject.com/en/4.2/releases/4.2/#index-together-option-is-deprecated-in-favor-of-indexes index-together is deprecated for indexes and we have this in a couple places in the code.

Justification

From the Django release notes: "Support for psycopg2 is likely to be deprecated and removed at some point in the future.

Be aware that psycopg 3 introduces some breaking changes over psycopg2. As a consequence, you may need to make some changes to account for differences from psycopg2."

Originally created by @arthanson on GitHub (Apr 12, 2023). Originally assigned to: @arthanson on GitHub. ### Proposed Changes Django 4.2 has been released and it has support for the new psycopg3 (instead of the current psycopg2). Also note: https://docs.djangoproject.com/en/4.2/releases/4.2/#index-together-option-is-deprecated-in-favor-of-indexes index-together is deprecated for indexes and we have this in a couple places in the code. ### Justification From the Django release notes: "Support for psycopg2 is likely to be deprecated and removed at some point in the future. Be aware that psycopg 3 introduces some breaking changes over psycopg2. As a consequence, you may need to make some changes to account for differences from psycopg2."
adam added the status: acceptedtype: housekeeping labels 2025-12-29 20:29:40 +01:00
adam closed this issue 2025-12-29 20:29:40 +01:00
Author
Owner

@jeremystretch commented on GitHub (Apr 12, 2023):

It's worth calling out that Django 4.2 also drops support for PostgreSQL 11.

@jeremystretch commented on GitHub (Apr 12, 2023): It's worth calling out that Django 4.2 also [drops support for PostgreSQL 11](https://docs.djangoproject.com/en/4.2/releases/4.2/#dropped-support-for-postgresql-11).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7897