windows下创建django项目碰到的问题和解决方法

执行manage.py syncdb时碰到的问题:

1. 报错信息

Try using django.db.backends.mysql instead.
Error was: No module named mysql.base

解决方法:

将’ENGINE’: ‘mysql’, 替换为’ENGINE’: ‘django.db.backends.mysql’,

2.报错信息

django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb

解决方法:

安装mysql-python或mysqldb。

MySQL-python-1.2.3.win32-py2.7.exe