Skip to content

Update to Django 4.2 and psycopg3 #12237

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
arthanson opened this issue Apr 12, 2023 · 1 comment
Closed

Update to Django 4.2 and psycopg3 #12237

arthanson opened this issue Apr 12, 2023 · 1 comment
Assignees
Labels
status: accepted This issue has been accepted for implementation type: housekeeping Changes to the application which do not directly impact the end user
Milestone

Comments

@arthanson
Copy link
Collaborator

arthanson commented Apr 12, 2023

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."

@arthanson arthanson added the type: housekeeping Changes to the application which do not directly impact the end user label Apr 12, 2023
@jeremystretch jeremystretch added the needs milestone Awaiting prioritization for inclusion with a future NetBox release label Apr 12, 2023
@jeremystretch
Copy link
Member

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

@jeremystretch jeremystretch added this to the v3.6 milestone Apr 18, 2023
@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation and removed needs milestone Awaiting prioritization for inclusion with a future NetBox release labels Apr 18, 2023
@arthanson arthanson self-assigned this Jun 14, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: housekeeping Changes to the application which do not directly impact the end user
Projects
None yet
Development

No branches or pull requests

2 participants