[Answered ]-'ascii' codec can't decode byte (problem when using django)


okay, I got it. All I needed to do was include # -*- coding: utf-8 -*- in the django view as well and that solved it!


Try putting that line at the top of your file. According to PEP 263, it has to be in the top two lines.


Leave a comment