Django + South KeyError: 'ENGINE -


i'm using django 1.4 latest south + 'engine': 'django.db.backends.mysql' added south installed_apps syncdb returns error:

ment/commands/__init__.py", line 13, in <module> south.management.commands.syncdb import command synccommand   file "/usr/local/lib/python2.7/dist-packages/south-0.7.6-py2.7.egg/south/management/commands/syncdb.py", line 17, in <module>     south.db import dbs   file "/usr/local/lib/python2.7/dist-packages/south-0.7.6-py2.7.egg/south/db/__init__.py", line 44, in <module>     if db_settings['engine'] in engine_modules keyerror: 'engine' 

this taken settings.py:

databases = {     'default': {         'engine': 'django.db.backends.mysql',         'name': 'db',         'user': 'root',         'password': '1111',         'host': '',         'port': '',     },     'options': {             'init_command': 'set storage_engine=innodb,character_set_connection=utf8,collation_connection=utf8_unicode_ci'     }, } 

do need add variable settings?

try removing options dict. worked me


Comments

Popular posts from this blog

asp.net mvc 3 - Using mvc3, I need to add a username/password to the sql connection string at runtime -

kineticjs - draw multiple lines and delete individual line -

thumbnails - jQuery image rotate on hover -