Re: error psycopg in Django/MacOSX
Daniele Varrazzo <[email protected]> Tue, 3 Aug 2010 15:52:25 +0100
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Message-ID | <[email protected]> |
2010/8/3 Daniel Fran=E7a <[email protected]>: > ok, this error doesn't happen anymore, I installed python32bits > My website is running, but when I try to insert some data at the > database I get the error: > Can't adapt type <<timezone>> > I tried to use timezone as 'US/Eastern', 'America/Sao_Paulo' > but the problem remains. > Maybe it's because my postgresql is 64 bits? How do I know if it is? > can anyone help me? Hello, no, you are past the 32/64 bits problem: now psycopg seems running fine. Psycopg doesn't know what the object you are trying to pass to the query is (timezone). Is it a class of yours or something else? Can you provide an example of the query you are trying to run and the objects you are passing it? I don't think postgres has a "timezone" data type: maybe you want to save a timestamp with time zone instead. Regards, -- Daniele