简体   繁体   English

django,apache和mod_wsgi的类型错误问题

[英]Type error problem with django, apache and mod_wsgi

I've this problem with my django code. 我的Django代码存在此问题。

TypeError at /conto/partitario/cerca/

unsupported operand type(s) for +: 'Decimal' and 'Decimal'

Request Method:     GET
Request URL:    http://myurl.com/cerca/
Exception Type:     TypeError
Exception Value:    

unsupported operand type(s) for +: 'Decimal' and 'Decimal'

On my pc this error has never presented but on production server i've this error frequently on the same page. 在我的电脑上,这个错误从未出现过,但是在生产服务器上,我经常在同一页面上出现此错误。 On the server if i reload or restart apache the error disappear for 3/4 hours and then come back!!! 在服务器上,如果我重新加载或重新启动apache,错误会消失3/4小时,然后返回!!!

Any Idea?? 任何想法??

Thanks! 谢谢!

After some research i find a tip on this ticket http://code.djangoproject.com/ticket/10933 and i apply this patch. 经过研究后,我在此故障单上找到了一个提示, 网址为http://code.djangoproject.com/ticket/10933,并应用了此补丁程序。 For four days my software goes fine but yesterday the error come back!!! 我的软件运行了四天,但是昨天错误又回来了!!! Here my code: movim = 这是我的代码:movim =

conto.movimentocont_set.filter(testata__data_registrazione__lte=data2,testata__data_registrazione__gte=data1).order_by('testata__data_registrazione')

                for mov in movim:

                    dare = dn(dare)  + dn(mov.dare)<----- error on this line????

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM