当前位置:网站首页>Django运行报错:Error loading MySQLdb module解决方法
Django运行报错:Error loading MySQLdb module解决方法
2022-07-06 09:13:00 【As。】
报错信息如下:
解决方法:
在项目下的__init__.py文件里添加以下代码(主要是项目项目项目!!!不是应用)
import pymysql
pymysql.install_as_MySQLdb()
添加成功后即可运行成功,祝你好运~
边栏推荐
- CSDN-NLP:基于技能树和弱监督学习的博文难度等级分类 (一)
- Anaconda3 installation CV2
- Global and Chinese market for intravenous catheter sets and accessories 2022-2028: Research Report on technology, participants, trends, market size and share
- Global and Chinese markets of static transfer switches (STS) 2022-2028: Research Report on technology, participants, trends, market size and share
- Some problems in the development of unity3d upgraded 2020 VR
- Generate PDM file from Navicat export table
- [BMZCTF-pwn] 11-pwn111111
- February 13, 2022-2-climbing stairs
- C language advanced pointer Full Version (array pointer, pointer array discrimination, function pointer)
- Mysql21 user and permission management
猜你喜欢
A trip to Macao - > see the world from a non line city to Macao
Other new features of mysql18-mysql8
Mysql22 logical architecture
CSDN问答标签技能树(五) —— 云原生技能树
Mysql23 storage engine
[recommended by bloggers] C WinForm regularly sends email (with source code)
Mysql26 use of performance analysis tools
MySQL18-MySQL8其它新特性
35 is not a stumbling block in the career of programmers
Swagger, Yapi interface management service_ SE
随机推荐
[paper reading notes] - cryptographic analysis of short RSA secret exponents
[BMZCTF-pwn] 12-csaw-ctf-2016-quals hungman
Timestamp with implicit default value is deprecated error in MySQL 5.6
C language string function summary
MySQL21-用户与权限管理
Mysql28 database design specification
Mysql25 index creation and design principles
Mysql34 other database logs
Anaconda3 installation CV2
Global and Chinese market of transfer switches 2022-2028: Research Report on technology, participants, trends, market size and share
Mysql21 user and permission management
@Controller, @service, @repository, @component differences
MySQL20-MySQL的数据目录
Baidu Encyclopedia data crawling and content classification and recognition
Ansible practical Series III_ Task common commands
Invalid default value for 'create appears when importing SQL_ Time 'error reporting solution
Kubesphere - deploy the actual combat with the deployment file (3)
CSDN question and answer module Title Recommendation task (I) -- Construction of basic framework
Why is MySQL still slow to query when indexing is used?
CSDN博文摘要(一) —— 一个简单的初版实现