(I tried to post the below in a comment at poupou's site (http:// www.defitek.com/blog/2010/06/29/cant-adapt-type-decimal-error-with-django-apache-postgresql-psycopg2/), but kept getting errors.)
Just ran into the same problem. In my mod_wsgi config I had: WSGIDaemonProcess site1 maximum-requests=10000 WSGIProcessGroup site1 WSGIScriptAlias /site1 /var/www/site1/django.wsgi WSGIDaemonProcess site2 maximum-requests=10000 WSGIProcessGroup site2 WSGIScriptAlias /site2 /var/www/site2/django.wsgi I was getting errors with that, but with the "process-group" parameter things are running fine. Funny that at http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives the only place where "process-group" is mentioned is in the WSGIImportScript section. On Jun 28, 5:01 pm, poupou <etiennepoul...@gmail.com> wrote: > I confirm that everything is working fine now. > > Thank you again. > > On 25 juin, 13:12, poupou <etiennepoul...@gmail.com> wrote: > > > > > > > > > Yes I'm running two sites on the same server. Only difference with > > you is that I'm running it with virtual host. > > > I modifier my Apache config, now it looks like this : > > > <VirtualHost *:443> > > ServerName site1.com > > WSGIDaemonProcess site1 > > WSGIScriptAlias / /var/www/site1.wsgi process-group=site1 > > application-group=%{GLOBAL} > > > </VirtualHost> > > > <VirtualHost *:443> > > ServerName site2.com > > WSGIDaemonProcess site2 > > WSGIScriptAlias / /var/www/site2.wsgi process-group=site2 > > application-group=%{GLOBAL} > > > </VirtualHost> > > > It will take a little to make sure it's working, I will report on this > > thread if everything is ok. > > > Thank you! > > > On 25 juin, 10:51, Stuart <stu...@bistrotech.net> wrote: > > > > On Jun 25, 8:06 am, poupou <etiennepoul...@gmail.com> wrote: > > > > > Of the 2 web site that I have, It only happens where I make request > > > > using the the Q objects. > > > > If you have two django sites/projects on the same server > > > (e.g.http://myserver/app1andhttp://myserver/app2) and you are using > > > mod_wsgi, I bet you're having the same problem I was. To fix it, > > > upgrade to the latest version of mod_wsgi and run it in daemon mode. > > > See here for > > > details:http://groups.google.com/group/satchmo-users/msg/a9b22c236d63c323 > > > > Hope that helps, > > > > --Stuart -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.