What is PyMySQL and how does it differ from MySQLdb? Can it affect Django deployment?

后端 未结 5 863
情歌与酒
情歌与酒 2020-12-01 01:18

I just solved some problems in my Django 1.3 app by using PyMySQL instead of MySQLdb. I followed this tutorial on how to make the switch: http://web-eng-help.blogspot.com/20

5条回答
  •  爱一瞬间的悲伤
    2020-12-01 01:57

    PyMySQL and MySQLdb are both database connectors for Python, libraries to enable Python programs to talk to a MySQL server.

    You would normally never upload core Django files when deploying an app. If Django is working fine on your deployment server, you definitely don't need to change anything there. The DB driver is a step or two below the ORM even, and certainly none of the code you have written depends on which of these is in use.

提交回复
热议问题