diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-05-05 19:44:43 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-05-10 10:23:15 +0200 |
| commit | 6d3d6081e83295b4d0af8d4dbcf388bebc33ba41 (patch) | |
| tree | 98604114589c2d6d18f3f9f9370ca1262c066372 /docs | |
| parent | b5d6a5b21a2af4f0b4c3e8e3ca4b44e77812d996 (diff) | |
[1.5.x] Fixed #20025 -- Pointed to a MySQLdb fork for Python 3.
Made a few minor compatibility adjustments.
Backport of e81e319f from master.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/databases.txt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt index fb8425d8e7..35e75f1140 100644 --- a/docs/ref/databases.txt +++ b/docs/ref/databases.txt @@ -209,6 +209,15 @@ required for full MySQL support in Django. .. _MySQLdb: http://sourceforge.net/projects/mysql-python +Python 3 +-------- + +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`_. + +.. _MySQL-for-Python-3: https://github.com/clelland/MySQL-for-Python-3 + Creating your database ---------------------- @@ -318,8 +327,8 @@ Here's a sample configuration which uses a MySQL option file:: default-character-set = utf8 Several other MySQLdb connection options may be useful, such as ``ssl``, -``use_unicode``, ``init_command``, and ``sql_mode``. Consult the -`MySQLdb documentation`_ for more details. +``init_command``, and ``sql_mode``. Consult the `MySQLdb documentation`_ for +more details. .. _MySQL option file: http://dev.mysql.com/doc/refman/5.0/en/option-files.html .. _MySQLdb documentation: http://mysql-python.sourceforge.net/ |
