Opened 9 years ago

Closed 4 years ago

#27 closed enhancement (wontfix)

Support for Django

Reported by: cito Owned by: darcy
Priority: major Milestone: 5.0
Component: DB API 2 Version: 4.0
Keywords: Cc:


It seems Django (i.e. it's ORM) currently supports only psycopg2, but not PyGreSQL. We should check if Django can work with PyGreSQL too, and add a recipe or compatibility patch to Django.

Change History (2)

comment:1 Changed 4 years ago by cito

  • Milestone changed from 4.2 to 5.0
  • Priority changed from minor to major

comment:2 Changed 4 years ago by cito

  • Resolution set to wontfix
  • Status changed from new to closed

I have checked this now:

Unfortunately, the psycopg2 support in Django is pretty much hardcoded and psycopg2 cannot be easily replaced with another DB-API 2 compliant driver.

It is only possible to use another driver by creating a 3rd party database support package with all the stuff that can be found in django.db.backends.postgresql with slight adaptions for the respective driver. It would be nice if the stuff from there could be imported and reused (e.g. by subclassing), but the modules there do not even import when psycopg2 is not installed. So we would need to duplicate (and then maintain) everything that can be found there.

I currently do not see much sense in doing this, so I'm closing this.

Note: See TracTickets for help on using tickets.