无法使用 Django 连接到 firebird 数据库
Can't connect to firebird database using Django
第一次使用 Django,所以我查阅了教程 - 我按照 this link and everything went fine, until I had to adjust the settings.py file, where I followed this other link 进行操作并遇到了这个错误:
django.core.exceptions.ImproperlyConfigured: 'firebird' isn't an available database backend.
Try using 'django.db.backends.XXX', where XXX is one of:
'mysql', 'oracle', 'postgresql', 'sqlite3'
我通过 pip install django-firebird
安装了 django-firebird,我有一个不同的 python 脚本,它使用 import fdb
很好,而且我已经能够定期访问我的 firebird 数据库other python 脚本,那么是什么导致了这个错误?
ps.:This and this branched out from the first link作为后续步骤提及ps.
django-firebird 的最后一个稳定版本是 1.11,它与 django 1.11 LTS 兼容。这是推荐使用的版本。检查 Issue
如果您正在使用 Django 2.x,您需要降级。
But if you use Python 3.8 you will not be able to downgrade!
在这种情况下,我建议使用 Flask with SQLAlchemy 与 firebird
集成
对于 Django 2.2.x 我们推荐 stable/2.2.x 支持 firebird 3 和 python 3.8 的分支,这里是第一个预发布版
第一次使用 Django,所以我查阅了教程 - 我按照 this link and everything went fine, until I had to adjust the settings.py file, where I followed this other link 进行操作并遇到了这个错误:
django.core.exceptions.ImproperlyConfigured: 'firebird' isn't an available database backend.
Try using 'django.db.backends.XXX', where XXX is one of:
'mysql', 'oracle', 'postgresql', 'sqlite3'
我通过 pip install django-firebird
安装了 django-firebird,我有一个不同的 python 脚本,它使用 import fdb
很好,而且我已经能够定期访问我的 firebird 数据库other python 脚本,那么是什么导致了这个错误?
ps.:This and this branched out from the first link作为后续步骤提及ps.
django-firebird 的最后一个稳定版本是 1.11,它与 django 1.11 LTS 兼容。这是推荐使用的版本。检查 Issue
如果您正在使用 Django 2.x,您需要降级。 But if you use Python 3.8 you will not be able to downgrade!
在这种情况下,我建议使用 Flask with SQLAlchemy 与 firebird
集成对于 Django 2.2.x 我们推荐 stable/2.2.x 支持 firebird 3 和 python 3.8 的分支,这里是第一个预发布版