Code

Opened 8 months ago

Closed 8 months 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 :

https://code.djangoproject.com/ticket/20542

Attachments (0)

Change History (1)

comment:1 Changed 8 months ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to wontfix
  • Status changed from new to closed

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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.