On Fri, May 15, 2009 at 10:07 PM, Phil <but...@gmail.com> wrote: > > Hi, > > I'm trying Django with MySQL and the pyodbc connector. However, it > appears that Django can only cope with the mysqldb connector. I get a > load of traceback ending with the error: > > File "C:\python26\lib\site-packages\django\db\backends\mysql\base.py", > line 13, in <module> > raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) > django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb > module: No module named MySQLdb > > Is there replacement code for pyodbc to get this working? >
There's MySQLdb. That's what Django's built-in MySQL backend is coded to use, not pyodbc. With it, you do not need any special connector (such as MySQL Connector/ODBC) on the database server side, you just need MySQLdb on the client side. I don't know of any Django database backends that communicate with MySQL via pyodbc. The only Django database backend that uses pyodbc that I have heard of is django-pyodbc (http://code.google.com/p/django-pyodbc/), but I believe that one is specific to MS SQL Server. Karen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---