django ifequal crush in chinese

2009-05-09 Thread linvar
hello everybody: i cannot use {% ifequal var1 var2 %} to test if equal when var1,var2 are UTF8 encoding. but if var1,var2 are ansi that is ok. you know i am in chinese and alway catche such ugly encoding problem. anyone can help. thanks advanced! --~--~-~--~~~--

how to catch the errors throwed by django when django project deployed under fastcgi

2009-05-12 Thread linvar
hi everyone: recently i deployed my django project under the nginx + django + fastcgi mode, i upload my project to the sever and i encounter 'Unhandled Exception throwed by app', but in my development enviroment no error happen. now i want to catche the django exception just like developmen