setting that(Setting Django/MySQL site to use UTF8 Stack Overflow)
导读:All I had to do was put this insettings.py: OPTIONS...
All I had to do was put this insettings.py:
OPTIONS:{init_command:SET storage_engine=INNODB}Then I created the database myself in MySQL with:
CREATEDATABASE my_database CHARACTER SET utf8;followed by all theCREATE USERandGRANTcalls.
After that,./manage.py syncdband./manage.py migrate(since I use South) finished everything up.
Its been working fine so far. Didnt have to change any MySQL config files,
创心域SEO版权声明:以上内容作者已申请原创保护,未经允许不得转载,侵权必究!授权事宜、对本内容有异议或投诉,敬请联系网站管理员,我们将尽快回复您,谢谢合作!