Opened 11 years ago
Closed 11 years ago
#21520 closed New feature (wontfix)
Ship PyMysql as a defaut MySQL driver
Reported by: | anonymous | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 1.6 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Ship PyMsql (https://github.com/PyMySQL/PyMySQL) with Django, and make django.db.backends.mysql try to import a C driver, and failling that, fall back to PyMySQL. This will lower the barrier of entry for new comers using MySQL (such as PHP dev).
Wep2py have doing that for some times, it seems to work great for them.
It may require some work as the API can be a bit different :
Note:
See TracTickets
for help on using tickets.
We're definitely not going to *ship* PyMySQL with Django. Python's packaging infrastructure is now reliable, we don't have to vendor packages any more.
There might be a valid argument for noting that PyMySQL can be used as an alternative to MySQLdb or MySQL Connector/Python -- however, we'd need to fixing bugs like #20542 first.
Marking wontfix; please open a new ticket about updating the documentation if PyMySQL reaches a point where it is a compelling replacement for the other official options.