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

Partager une adresse IP externe entre Apache et un autre serveur web

Chez un de mes clients, je devais ajouter un nouveau serveur web sous Apache qui fonctionnerait en mode ssl.  Le problème est que, leur serveur de courrier, en l’occurrence Zimbra, fonctionne déjà sur ce port et il n’ont qu’une seule adresse IP externe.

J’ai d’abord pensé me servir du serveur Apache de Zimbra pour simplement ajouter un nouveau site web.  Mais je n’aime pas cette option, car je préfère laisser Zimbra intègre, car sinon à chaque mise à jour de Zimbra il faut réappliquer les changements au serveur Apache de Zimbra.

De plus, je ne voulais pas ajouter une charge supplémentaire au serveur Zimbra, car celui-ci est déjà chargé.

Là intervient ReverseProxy de Apache.  ReverseProxy est une option extrêmement puissante d’Apache qui permet à site web d’être l’intermédiaire pour un autre.

Read the rest of this entry »

  • Share/Bookmark