Django: using older version of postgresql

I want to develop a backend with Django and interact with a production database that runs PostgreSQL 12.X. Django 5, however, is only compatible with PostgreSQL 13+.

There are the options of

  • writing direct SQL commands
  • hacking Django to overwrite the version check
  • downgrade Django by two major versions,

but I'm not happy with either of the solutions.

Is there a more elegant way of using PostgreSQL 12 with Django 5?

Back to Top