django-pyodbc vs django-mssql

 ̄綄美尐妖づ 提交于 2019-12-10 13:53:21

问题


It's in the title really. I want to run Django against MSSQL 2005. Both look reasonably active and up to date. I can't seem to see any unique points for either.

  • Can anyone recommend one over the other?
  • Would it be trivial to swap between the two at a later date?
  • Are they production-ready?

Thanks!


回答1:


My choose is django-pyodbc because of cross-platform requirements. django-mssql runs only on Windows.

Django-pyodbc works with South.

Django-pyodbc has some bugs and pyodbc itself too. I've patched both (I found code somewhere). First problem was inserting keys which are identity (i.e. autoincremented) in DB when running 'manage.py ss_loaddata' command. ss_loaddata is a special command for this backend instead of 'loaddata'. Second problem... I don't remember this.

As I see, django-mssql have bugs too, but, I hope, less than pyodbc. I haven't try it yet.

May be, both are stable now :)



来源:https://stackoverflow.com/questions/5297243/django-pyodbc-vs-django-mssql

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