Closed eggnstone closed 2 years ago
Hello, I have tried to reproduce the issue with Mezzanine 5.0, Django 3.2, Python 3.8 and MySQL 5.7. I actually first got a different error: incorrect string value
. I fixed it by following the advice from this Stack Overflow post.
In summary, you need to create your tables with the correct encoding (utf8) AND set Django's database options to {"charset": "utf8mb4"}
. After that the demo data set is loaded without problem.
You can also avoid this situation altogether by adding the --nodata
flag to the createdb
command. This will skip the gallery creation, which is the part having trouble storing an image with the name Ávila Spain.jpg
(notice the accent on the first A).
Didn't receive a response so I'm closing the issue for now. Feel free to re-open with more details.
pip install mezzanine
pip install mysqlclient
mezzanine-project TestMysql .
local_settings.py
to use mysqlpython manage.py createdb --noinput
=>
KeyError: <class 'bytes'>
Environment:
pip list
: