摘要: 代码见 https://github.com/linux-wang/show-me-the-code/tree/master/dj_test 实际上是 https://github.com/linux-wang/show-me-the-code 的练习题 使用django写实际上有点复杂,可以用一下 阅读全文
posted @ 2016-05-10 23:37 wswang 阅读(1534) 评论(0) 推荐(2)
摘要: 出错的代码位置 实际上views中返回的必须是字典 见http://stackoverflow.com/questions/31105131/django-cannot-convert-dictionary-update-sequence-element-0-to-a-sequence https: 阅读全文
posted @ 2016-05-10 15:50 wswang 阅读(2103) 评论(0) 推荐(0)
摘要: 原因 此处如果没有unicode就会报这个错误,原因就是编码错误 以为是文件开始没有加utf-8导致的,然而加上还是不对 。 见http://stackoverflow.com/questions/5345400/django-coercing-to-unicode-need-string-or-b 阅读全文
posted @ 2016-05-10 15:29 wswang 阅读(582) 评论(0) 推荐(0)