django部署apache時(shí)報(bào)500 Internal Server Error
看了下Apache的error日志耻瑟,RuntimeError: populate() isn't reentrant\r, referer:
除了網(wǎng)上說的修改setting跟wsgi.py以外
還需要在__init__.py中添加點(diǎn)內(nèi)容
import pymysql
pymysql.version_info = (1, 4, 13, "final", 0)? # 指定版本
pymysql.install_as_MySQLdb()