can’t adapt type ‘Decimal’ error with Django + Apache + PostgreSQL + Psycopg2

One of my Django installation was running fine for a few months.  Last week I had to add a new Django project to this server.

My setup was : CentOS 5.5, Apache, mod_wsgi and psycopg2 2.2.0.x

After I added the new project, I started getting random errors « can’t adapt ». It would work perfectly for a few hours than my users would start getting an annyoying 500 error.

I searched the web, this seems to be a rather common error…but everything I found was related to another issue or something that was fixed in the Django release that I’m using.

Read the rest of this entry »

  • Share/Bookmark