Skip navigation links

MySQL Forums :: Connector/Python :: mysql-connector + Django


Advanced Search

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:
Quote

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. (https://github.com/jerith/connector-django-mysql)

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

Quote

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/_mysql.so, 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/_mysql.so
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.

Regards,
Chris

Options: ReplyQuote


Subject Written By Posted
mysql-connector + Django Christopher Jakob 12/21/2010 02:53PM
Re: mysql-connector + Django Christopher Jakob 12/24/2010 05:41AM


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.