This is the postgrelog:
2007-04-15 11:23:06 CEST ERROR:  no se puede truncar una tabla
referida en una llave foránea
2007-04-15 11:23:06 CEST DETALLE:  La tabla «galeria_galeria» hace
referencia a «galeria_album».
2007-04-15 11:23:06 CEST HINT:  Trunque la tabla «galeria_galeria» al
mismo tiempo, o utilice TRUNCATE ... CASCADE.
2007-04-15 11:23:06 CEST SENTENCIA:  TRUNCATE TABLE galeria_album
2007-04-15 11:23:06 CEST ERROR:  transacción abortada, las consultas
serán ignoradas hasta el fin de bloque de transacción
2007-04-15 11:23:06 CEST SENTENCIA:  INSERT INTO
galeria_album(nombre,path) VALUES('Galeria','media/fotos/')
2007-04-15 11:23:06 CEST ERROR:  inserción o actualización en la tabla
«galeria_album» viola la llave foránea «padre_id_refs_id_8fc3037»
2007-04-15 11:23:06 CEST DETALLE:  La llave (padre_id)=(0) no está
presente en la tabla «galeria_album».
2007-04-15 11:23:06 CEST SENTENCIA:  END
2007-04-15 11:23:38 CEST ERROR:  no se puede truncar una tabla
referida en una llave foránea
2007-04-15 11:23:38 CEST DETALLE:  La tabla «galeria_galeria» hace
referencia a «galeria_album».
2007-04-15 11:23:38 CEST HINT:  Trunque la tabla «galeria_galeria» al
mismo tiempo, o utilice TRUNCATE ... CASCADE.
2007-04-15 11:23:38 CEST SENTENCIA:  TRUNCATE TABLE galeria_album
2007-04-15 11:23:38 CEST ERROR:  transacción abortada, las consultas
serán ignoradas hasta el fin de bloque de transacción
2007-04-15 11:23:38 CEST SENTENCIA:  INSERT INTO
galeria_album(nombre,path) VALUES('Galeria','media/fotos/')

I'm gonna check what you said about referential integrity. I'll post
again if I solve it and if I don't.



On 15 abr, 08:48, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> On Apr 15, 1:46 am, "Grupo Django" <[EMAIL PROTECTED]> wrote:
>
> > Hello!
> > I was building a gallery image, and everithing went fine with mysql,
> > but lately, I changed my mind and I changed the database to postgres,
> > it's the django recommendation.
> > Well, sudenly I got this message:
> > ProgrammingError?: ERROR: current transaction is aborted, commands
> > ignored until end of transaction block
>
> What do the PostgreSQL logs say?
>
> L.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to