mysql - Django syncdb not respecting collation and encoding -
mysql - Django syncdb not respecting collation and encoding -
i'm setting project that'll available in 16 languages i'm trying setup database unicode characters using next init command;
databases = { 'default': { 'engine': 'django.db.backends.mysql', 'name': database_name, 'user': '', 'password': '', 'host': 'localhost', 'port': '', 'storage_engine': 'innodb', 'conn_max_age': 100, 'atomic_requests': true, 'options': { 'init_command': 'set storage_engine=innodb,character_set_connection=utf8,collation_connection=utf8_unicode_ci', }, } }
when check tables created python manage.py syncdb
they're set latin1. i've got correct? or making error using init_command
collation & encoding?
mysql django
Comments
Post a Comment