Django:当输入python manage.py startapp出现的错误

Traceback (most recent call last):
File “D:\python\lib\site-packages\django\db\backends\mysql\base.py”, line 15,
in
import MySQLdb as Database
ModuleNotFoundError: No module named ‘MySQLdb’
我使用的是MYSQL
所以当我改setting.py配置的时候忘了加下面一句

import pymysql
pymysql.install_as_MySQLdb()

你可能感兴趣的:(Django)