I am using postgresql with postgresql_psycopg2.


On 1 Ağustos, 17:21, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On 8/1/07, omat <[EMAIL PROTECTED]> wrote:
>
>
>
> > Shouldn't Django be reporting that failure? Success messages are
> > confusing.
>
> I _did_ get an error message, warning me about an invalid primary key:
>
> psycopg.DatabaseError: {<cursor object at 0x12d7f70>: 'ERROR:  insert
> or update on table "mytest_documentissue" violates foreign key
> constraint "mytest_documentissue_user_id_fkey"\nDETAIL:  Key
> (user_id)=(2) is not present in table "auth_user".\n'}
>
> Admittedly, the error was a little cryptic, but it did name the model
> and pk value that was missing.
>
> I can only presume this is a database-specific difference. I'm using
> Postgres - what database backend are you using?
>
> Yours,
> Russ Magee %-)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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