摘要:
今天项目开发中遇到一个错误,排查了很久才发现原因,现在分享出来,希望对大家有所帮助。 错误描述:在项目中添加了一个random.py的类,导入random中的choice,并在randstr方法中使用,运行randstr方法,报错: ImportError: cannot import name c 阅读全文
摘要:
前提: 使用Django自带的test进行单元测试。 问题描述: 运行:python manage.py test,报错,出现数据库乱码的现象,报错如下: Creating test database for alias 'default'... Got an error creating the 阅读全文