是否可以将Django与Access数据库一起使用? [英] Is it possible to use Django with an Access database?
问题描述
是否可以使用Microsoft Access数据库(.accdb)作为Django应用程序的后端?
Is it possible to use a Microsoft Access database (.accdb) as the back-end for a Django application?
推荐答案
至少在Windows下,它可能是可能. Django文档包含指向
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.
此外,问题仍然在于使用Access数据库作为Django应用程序的后端是否是一个好主意.该问题的答案是可能不会". Access数据库通常不是Web应用程序后端的理想选择.实际上, Microsoft强烈建议不要在Web应用程序中使用Access
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.
这篇关于是否可以将Django与Access数据库一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!