Quantcast
Channel: MySQL Forums - Connector/Python
Viewing all articles
Browse latest Browse all 384

mysql-connector + Django (1 reply)

$
0
0
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

Viewing all articles
Browse latest Browse all 384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>