Working on postgis: investigation log

16 views
Skip to first unread message

James PIC

unread,
Dec 18, 2009, 3:18:51 PM12/18/09
to satchm...@googlegroups.com
Hi,

For Satchmo to work for me on postgis with the current trunk:

- disable wishlist,
- disable recentlist,
- the hack by Gloria's apprentice on
http://groups.google.com/group/satchmo-users/browse_thread/thread/4299574cd83146a8/09c23de24144fab7
- add the following to localsite/models.py:

from django.db import connection
from django.core import signals

def close_connection(**kwargs):
connection.close()

signals.request_started.connect(close_connection)

Before, this kind of errors hapenned:

OperationalError: server closed the connection unexpectedly
SET TRANSACTION ISOLATION LEVEL must be called before any query
SettingNotSet
WARNING Problem finding settings SHOP.SHOW_SITE, server closed the
connection unexpectedly, Problem finding settings
PRODUCT.PRODUCT_SLUG, server closed the connection unexpectedly,
WARNING Problem finding settings
PRODUCT.CATEGORY_SLUG, server closed the connection unexpectedly

Versions:
Postgres 8.4.2
Python 2.6.2
Flup 1.0.2
Psycopg 2.0.12
Postgis 1.4.0
Django trunk
Satchmo trunk

Thanks m1chael for supporting on #satchmo irc channel.

Regards, James.

--
http://jamespic.com/contact

Reply all
Reply to author
Forward
0 new messages