As I know, I can t use str(unicode) directly, especially the unicode string contains Chinese. But it is successed that I use str(u 中文 ) in Django. And ‘中文’ is Chinese. How magical it is! I am wonder why it can succeed. Who can tell me?
How do I get two distinct random records using Django? I ve seen questions about how to get one but I need to get two random records and they must differ.