Django manage.py syncdb throwing No module named MySQLdb

后端 未结 5 1000
花落未央
花落未央 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

    The problem is that you are missing the Python module that interfaces with MySQL.

    See the Django docs for get your database running which further points to MySQL notes.

    However, if you are just going through the tutorial it is much easier to use SQLite backend which is built-in to Python. No drivers, server, etc. needed.

提交回复
热议问题