in a nutshell, *if you are using Django 2.2 you must use psycopg < 2.9* For more details see: https://github.com/psycopg/psycopg2/issues/1293