File: compat.py

package info (click to toggle)
python-django-netfields 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 444 kB
  • sloc: python: 2,067; sh: 7; makefile: 4; sql: 2
file content (11 lines) | stat: -rw-r--r-- 309 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
from django import VERSION

if VERSION[0] < 2:
    from django.db.backends.postgresql_psycopg2.base import DatabaseWrapper
else:
    from django.db.backends.postgresql.base import DatabaseWrapper

try:
    from django.db.backends.postgresql.base import is_psycopg3
except ImportError:
    is_psycopg3 = False