当我尝试迁移时,我得到的是:
django.core.exceptions.ImproperlyConfigured:
'django.db.backends.mysql' isn't an available database backend
or couldn't be imported. Check the above exception. To use one
of the built-in backends, use 'django.db.backends.XXX', where
XXX is one of:
'oracle', 'postgresql', 'sqlite3'
看起来我做了一切:我提前创建了数据库,PyMySql在__init__.我正确配置了设置 - 还有什么原因?



问题是 cmd Windows 不理解 PyMySql 发生的原因,这就是发生此错误的原因。在PowerShell中工作时没有更多问题