Django使用问题记录
Posted jiguanghover
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Django使用问题记录相关的知识,希望对你有一定的参考价值。
1.python3下出现问题(首先安装pymysql与mysqlclient):
django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.
解决方法:
在项目的__init__.py文件中添加如下内容:
import pymysql
pymysql.version_info = (1, 3, 13, "final", 0)
pymysql.install_as_MySQLdb()
参考内容:
a) https://blog.csdn.net/weixin_45476498/article/details/100098297
b) https://blog.csdn.net/lpw_cn/article/details/103978909
以上是关于Django使用问题记录的主要内容,如果未能解决你的问题,请参考以下文章