diff options
| author | Tim Graham <timograham@gmail.com> | 2015-02-16 14:28:41 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-02-16 14:29:30 -0500 |
| commit | 50ec49c08709ccba55a856d3f0e536e90c28124f (patch) | |
| tree | 698ce09fb26a4d2ce9806b2de592c1faa7d6661e /docs | |
| parent | 870d900cdcd29564bcc7f47cc67d51af2617f614 (diff) | |
[1.8.x] Removed a note about old versions of MySQLdb.
Backport of f3bc7c5447a1e4bfa428a7ff32ea3336850c5c2d from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/databases.txt | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt index a3ad36f291..ae2f7bc310 100644 --- a/docs/ref/databases.txt +++ b/docs/ref/databases.txt @@ -253,26 +253,18 @@ MySQLdb Django requires MySQLdb version 1.2.1p2 or later. -.. note:: - If you see ``ImportError: cannot import name ImmutableSet`` when trying to - use Django, your MySQLdb installation may contain an outdated ``sets.py`` - 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. +At the time of writing, the latest release of MySQLdb (1.2.5) doesn't support +Python 3. In order to use MySQLdb under Python 3, you'll have to install +``mysqlclient`` instead. .. note:: There are known issues with the way MySQLdb converts date strings into - datetime objects. Specifically, date strings with value 0000-00-00 are - valid for MySQL but will be converted into None by MySQLdb. - - This means you should be careful while using loaddata/dumpdata with rows - that may have 0000-00-00 values, as they will be converted to None. + datetime objects. Specifically, date strings with value ``0000-00-00`` are + valid for MySQL but will be converted into ``None`` by MySQLdb. -.. 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``. + This means you should be careful while using :djadmin:`loaddata` and + :djadmin:`dumpdata` with rows that may have ``0000-00-00`` values, as they + will be converted to ``None``. mysqlclient ~~~~~~~~~~~ |
