psycopg2
PostgreSQL 数据库适配器有什么用;
或者在 设置中建立连接时使用 postgresql 与 postgresql_psycopg2 有什么区别Django 项目中的 .py
文件?
因为任何一个对我来说都很好。
'ENGINE': 'django.db.backends.postgresql'
'ENGINE': 'django.db.backends.postgresql_psycopg2'
最佳答案
根据documentation :
The PostgreSQL backend (django.db.backends.postgresql_psycopg2) is also available as django.db.backends.postgresql. The old name will continue to be available for backwards compatibility.
其实这个问题已经解决了here .
关于django - 连接到 PostgreSQL 时 Django 中的 "psycopg2"有什么用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54164283/