I have been trying and failing to test on Python 3.13 + Django 5.1. I couldn't get psycopg(2) to work.
Turns out, psycopg2 is in maintenance mode and Django recommends psycopg 3.1.8+. However, psycopg 3 does not support ±infinity as a value of datetimes, which we use for Incident.end_time (argus.incident.fields.DateTimeInfinityField) and everywhere in NAV.
I have been trying and failing to test on Python 3.13 + Django 5.1. I couldn't get psycopg(2) to work.
Turns out, psycopg2 is in maintenance mode and Django recommends psycopg 3.1.8+. However, psycopg 3 does not support
±infinity
as a value of datetimes, which we use forIncident.end_time
(argus.incident.fields.DateTimeInfinityField
) and everywhere in NAV.There is a workaround: https://pypi.org/project/psycopg-infdate/
In order to use
psycopg-infdate
with Django though I suspect we will have to write our own database backend. BTDT. Maybe not this year...