MySQL Forums
Forum List  »  Connector/Python

mysql-connector + Django
Posted by: Christopher Jakob
Date: December 21, 2010 02:53PM

Hi everybody.

After 12 hours of trying to get MySQL-Python on my Mac OSX 10.6 working i finally found mysql-connector. Thanks god.

Now i want to work with Django but i can't use it as Database Enginge.

The Error is:

django.core.exceptions.ImproperlyConfigured: 'mysql-connector' isn't an available database backend.
Try using django.db.backends.XXX, where XXX is one of:
'dummy', 'mysql', 'oracle', 'postgresql', 'postgresql_psycopg2', 'sqlite3'
Error was: No module named mysql-connector.base
I also tried the django mysql-connector backend from jerith. (

But if i use myconnpy_django_backend as ENGINGE i get the following error:


raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: dlopen(/Users/chris/.python-eggs/MySQL_python-1.2.3-py2.6-macosx-10.6-universal.egg-tmp/, 2): Library not loaded: libmysqlclient.16.dylib
Referenced from: /Users/chris/.python-eggs/MySQL_python-1.2.3-py2.6-macosx-10.6-universal.egg-tmp/
Reason: image not found

He is apparently forced to use the MySQL-Python Library which i am not able to use, as said previously.

How can i fix this?

Sorry, for my bad english.


Options: ReplyQuote

Written By
mysql-connector + Django
December 21, 2010 02:53PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.