#18970 closed Bug (fixed)
Document that Django doesn't work with MySQL under Python 3
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Python 3 | Version: | dev |
Severity: | Release blocker | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I am trying to use the Django with experimental Python 3 support on Linux.
I have installed MySqldb for connectivity with Mysql. (I have used the MySqldb with the python 3 support, from https://github.com/davispuh/MySQL-for-Python-3)
When i run python manage.py syncdb it gives me the following error.
python manage.py syncdb
Creating tables ...
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table auth_user
Creating table django_content_type
Creating table django_session
Creating table django_site
DatabaseError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%s AND django_content_type
.app_label
= %s )' at line 1")
Change History (6)
comment:1 by , 12 years ago
Component: | Uncategorized → Python 3 |
---|---|
Triage Stage: | Unreviewed → Accepted |
Type: | Uncategorized → New feature |
comment:2 by , 12 years ago
Severity: | Normal → Release blocker |
---|---|
Summary: | Django Python 3 experimental support, python manage.py syncdb, 1064 error. → Document that Django doesn't work with MySQL under Python 3 |
Type: | New feature → Bug |
Version: | 1.4 → master |
We're about to release 1.5.
We should say that MySQL is unsupported in the "Python 3 support" paragraph of the release notes.
Does anyone know if Oracle works? cx_Oracle supports on Python 3, but I don't know if we ever ran the test suite with Oracle and Python 3.
comment:3 by , 12 years ago
Another important current limitation to document is PIL (no ImageField on Python 3). Our best hope for a Python 3 port is with https://github.com/python-imaging/Pillow.
comment:4 by , 12 years ago
... and Selenium (LiveServerTestCase), http://code.google.com/p/selenium/issues/detail?id=2139
comment:5 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Yes, it is known that the MySQL support for Python 3 is not yet ready in Django, mainly because the official MySqldb has not migrated to Python 3.
Let's keep this as a TODO reminder or as a documentation ticket to specify that Django-Python3-MySQL is not supported yet if we don't make it before 1.5 release.