当前位置:网站首页>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()
添加成功后即可运行成功,祝你好运~
边栏推荐
- Opencv uses freetype to display Chinese
- Mysql28 database design specification
- CSDN-NLP:基于技能树和弱监督学习的博文难度等级分类 (一)
- Global and Chinese market of thermal mixers 2022-2028: Research Report on technology, participants, trends, market size and share
- Install mysql5.5 and mysql8.0 under windows at the same time
- MySQL 20 MySQL data directory
- MySQL26-性能分析工具的使用
- SSM整合笔记通俗易懂版
- Anaconda3 installation CV2
- How to change php INI file supports PDO abstraction layer
猜你喜欢
Valentine's Day is coming, are you still worried about eating dog food? Teach you to make a confession wall hand in hand. Express your love to the person you want
Other new features of mysql18-mysql8
Emotional classification of 1.6 million comments on LSTM based on pytoch
CSDN question and answer tag skill tree (I) -- Construction of basic framework
MySQL23-存儲引擎
MySQL master-slave replication, read-write separation
CSDN问答标签技能树(五) —— 云原生技能树
[reading notes] rewards efficient and privacy preserving federated deep learning
CSDN-NLP:基于技能树和弱监督学习的博文难度等级分类 (一)
35 is not a stumbling block in the career of programmers
随机推荐
Installation and use of MySQL under MySQL 19 Linux
February 13, 2022 - Maximum subarray and
[leectode 2022.2.13] maximum number of "balloons"
Bytetrack: multi object tracking by associating every detection box paper reading notes ()
Postman environment variable settings
Mysql27 - Optimisation des index et des requêtes
Navicat 導出錶生成PDM文件
MySQL30-事务基础知识
Breadth first search rotten orange
Ansible实战系列三 _ task常用命令
Invalid default value for 'create appears when importing SQL_ Time 'error reporting solution
[paper reading notes] - cryptographic analysis of short RSA secret exponents
@Controller, @service, @repository, @component differences
IDEA 导入导出 settings 设置文件
Swagger, Yapi interface management service_ SE
MySQL主从复制、读写分离
CSDN问答标签技能树(五) —— 云原生技能树
[C language] deeply analyze the underlying principle of data storage
CSDN问答模块标题推荐任务(一) —— 基本框架的搭建
Kubesphere - deploy the actual combat with the deployment file (3)