mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Refs #33308 -- Moved psycopg2 imports to the psycopg_any module.
This commit is contained in:
parent
c5ed884eab
commit
2ebfbd894e
13 changed files with 38 additions and 29 deletions
|
@ -9,12 +9,10 @@ from django.db.backends.base.creation import BaseDatabaseCreation
|
|||
from django.test import SimpleTestCase
|
||||
|
||||
try:
|
||||
import psycopg2 # NOQA
|
||||
from django.db.backends.postgresql.psycopg_any import errors
|
||||
except ImportError:
|
||||
pass
|
||||
else:
|
||||
from psycopg2 import errors
|
||||
|
||||
from django.db.backends.postgresql.creation import DatabaseCreation
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue