测试用例创建的数据库不支持中文,需要在设置进行配置 DATABASES = { 'default': { 'TEST_CHARSET': 'utf8', 'TEST_COLLATION': 'utf8_general_ci', }}