Thursday, March 3, 2016

Error using Django 1.9 with Postgres

Hello,

I`m start to using Django 1.9 with PostgreSQL, and when I try to add a record  using Admin, show me these error:

IntegrityError at /admin/cadastro/mercadoria/add/

insert or update on table "django_admin_log" violates foreign key constraint "django_admin_log_user_id_c564eba6_fk_accounts_webconflexuser_id"
DETAIL:  Key (user_id)=(1) is not present in table "accounts_webconflexuser".

Here is my traceback [1]

I`m using a custom user model. And yes! I have a admin user and logged with them...

Any ideia what's going on?


T.·.F.·.A.·.     S+F
Fellipe Henrique P. Soares

e-mail: > echo "lkrrovknFmsgor4ius" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'
Twitter: @fh_bash

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAF1jwZE%3Djn7zXLwkT8AyiSSOrMVjtGDUw9Cvq25DevtwUTQ9HQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment