Is it possible to use Django with an Access database?

这一生的挚爱 提交于 2020-01-02 09:29:10

问题


Is it possible to use a Microsoft Access database (.accdb) as the back-end for a Django application?


回答1:


It might be possible, at least under Windows. The Django documentation contains a link to django-pyodbc, a third-party ODBC back-end that is based on pyodbc, so perhaps you could try using that with the Access ODBC driver for Windows. However, django-pyodbc appears to be coded specifically for Microsoft SQL Server, and the SQL dialects for SQL Server ("T-SQL") and Access ("Access SQL") are similar but not identical, so compatibility with Access SQL may be somewhat limited.

Also, the question remains as to whether it is a good idea to use an Access database as a back-end for a Django application. The answer to that question is "Probably not.". An Access database is generally not a good choice of back-end for a web application. In fact, Microsoft strongly recommends against using Access in web applications.



来源:https://stackoverflow.com/questions/40476729/is-it-possible-to-use-django-with-an-access-database

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!