Removed a note about old versions of MySQLdb.

This commit is contained in:
Tim Graham 2015-02-16 14:28:41 -05:00
parent d392c1e150
commit f3bc7c5447
1 changed files with 8 additions and 16 deletions

View File

@ -253,26 +253,18 @@ MySQLdb
Django requires MySQLdb version 1.2.1p2 or later. Django requires MySQLdb version 1.2.1p2 or later.
.. note:: At the time of writing, the latest release of MySQLdb (1.2.5) doesn't support
If you see ``ImportError: cannot import name ImmutableSet`` when trying to Python 3. In order to use MySQLdb under Python 3, you'll have to install
use Django, your MySQLdb installation may contain an outdated ``sets.py`` ``mysqlclient`` instead.
file that conflicts with the built-in module of the same name from Python
2.4 and later. To fix this, verify that you have installed MySQLdb version
1.2.1p2 or newer, then delete the ``sets.py`` file in the MySQLdb
directory that was left by an earlier version.
.. note:: .. note::
There are known issues with the way MySQLdb converts date strings into There are known issues with the way MySQLdb converts date strings into
datetime objects. Specifically, date strings with value 0000-00-00 are datetime objects. Specifically, date strings with value ``0000-00-00`` are
valid for MySQL but will be converted into None by MySQLdb. valid for MySQL but will be converted into ``None`` by MySQLdb.
This means you should be careful while using loaddata/dumpdata with rows This means you should be careful while using :djadmin:`loaddata` and
that may have 0000-00-00 values, as they will be converted to None. :djadmin:`dumpdata` with rows that may have ``0000-00-00`` values, as they
will be converted to ``None``.
.. note::
At the time of writing, the latest release of MySQLdb (1.2.4) doesn't
support Python 3. In order to use MySQLdb under Python 3, you'll have to
install ``mysqlclient``.
mysqlclient mysqlclient
~~~~~~~~~~~ ~~~~~~~~~~~