Django manage.py syncdb throwing No module named MySQLdb

后端 未结 5 999
花落未央
花落未央 2021-02-04 12:59

I am a newbie learning Python/Django...

Am using the following tutorial located here.

Created a mysite database in MySQL 5 running on Snow Leopard.

Edite

5条回答
  •  执笔经年
    2021-02-04 13:43

    Make sure to create your database and with your MySQL server running try to connect to the database to check that database name, username and password are correct. then run:

    1) pip install mysqlclient

    2) python manage.py migrate

提交回复
热议问题