Opened 12 years ago

Closed 12 years ago

#19054 closed Uncategorized (worksforme)

Django backend for mysql is not installed

Reported by: sholland@… Owned by: nobody
Component: Documentation Version: 1.4
Severity: Normal Keywords: MySQL
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The Django documentation https://docs.djangoproject.com/en/dev/ref/settings/#engine says that several backends are available with the Django distribution, including MySQL. However, when I specifying mysql as the backend Django dies during startup with the error that the backend is not available. On the web, multiple sites describe how to download MySQLdb and install. This backend should be in Django, or the documentation should instruct how to install it.

Change History (1)

comment:1 by Tomek Paczkowski, 12 years ago

Resolution: worksforme
Status: newclosed

There are two things here: mysql backend and mysql driver. Driver is a library exposing mysql connection to Python program, backend is an adapter that lets Django use this driver to connect to DB. Mysql backend is indeed included with Django, while mysql driver is not.
There is quite nice docs on preparing DB: https://docs.djangoproject.com/en/1.4/topics/install/#database-installation

I've checked both mysql and postgresql backends and they behave well by displaying proper message that module mysqldb/psycopg2 is missing.

I'm closing this ticket as worksforme.

Note: See TracTickets for help on using tickets.
Back to Top