首页IT科技setting that(Setting Django/MySQL site to use UTF8 Stack Overflow)

setting that(Setting Django/MySQL site to use UTF8 Stack Overflow)

时间2025-08-04 19:10:14分类IT科技浏览4175
导读: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版权声明:以上内容作者已申请原创保护,未经允许不得转载,侵权必究!授权事宜、对本内容有异议或投诉,敬请联系网站管理员,我们将尽快回复您,谢谢合作!

展开全文READ MORE
SEO优化不是目标,文章质量更为重要(不要为了SEO而牺牲文章质量,做好内容才能赢得持久流量) vue3 ref函数(Vue.js devtools插件Root点击失效或不显示问题的解决方法)