Error using Django 1.9 with Postgres

22 views
Skip to first unread message

Fellipe Henrique

unread,
Mar 3, 2016, 8:48:55 AM3/3/16
to Django Users
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
Reply all
Reply to author
Forward
0 new messages