[Answered ]-Django and Connector/Python Integration

2👍

MySQLdb is the Python interface to MySQL [supported by django]. Version 1.2.1p2 or later is required for full MySQL support in Django.

At the time of writing, the latest release of MySQLdb (1.2.4) doesn’t support Python 3. In order to use MySQL under Python 3, you’ll have to install an unofficial fork, such as MySQL-for-Python-3.

This port is still in alpha. In particular, it doesn’t support binary data, making it impossible to use django.db.models.BinaryField.

Basically your only options to avoid Alpha quality drivers are:

  1. Don’t use python 3.
  2. Don’t use MySQL.

Hopefully this makes the choice easier: http://grimoire.ca/mysql/choose-something-else

REF: https://docs.djangoproject.com/en/dev/ref/databases/#python-3

👤Thomas

Leave a comment