#24355: Cannot use Django 1.8a1 with mysql.connector.python (Oracle's official mysql connector.) ----------------------------------------------+----------------------- Reporter: ubill | Owner: nobody Type: Uncategorized | Status: new Component: Database layer (models, ORM) | Version: 1.8alpha1 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 1 | UI/UX: 0 ----------------------------------------------+----------------------- I have Django 1.8a1 and mysql-connector-python 2.0.3 installed.
I get this error, reproducable by setting ENGINE as below in the settings.py. And then running the command line python manage.py startapp polls DATABASES = { 'default': { #'ENGINE': 'django.db.backends.mysql', 'ENGINE': 'mysql.connector.django', The error happens at django.apps.config.py at around line 202: self.models_module = import_module(models_module_name) Partial stack trace (this error is reproducable anyhow.) django.core.exceptions.ImproperlyConfigured: 'mysql.connector.django' isn't an available database backend. Try using 'django.db.backends.XXX', where XXX is one of: u'base', u'mysql', u'oracle', u'postgresql_psycopg2', u'sqlite3' Error was: cannot import name BaseDatabaseFeatures My OS is Debian Wheezy. -- Ticket URL: <https://code.djangoproject.com/ticket/24355> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/048.85314147e2321da9829bb3b001e119c5%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.