Похожие чаты

Django.Db.Utils.IntegrityError: UNIQUE constraint failed: auth_permission.content_type_id, auth_permission.codename what might have caused this

error?
it does happen in custom models when a unique constraints is implemented in a wrong order but this error tells me that the "auth_permission" has that error
which is a built-in django model. what do i do?

3 ответов

11 просмотров
Ædel- Автор вопроса

(also i did google it. nothing about the built-in "app"s such as auth. only in custom model/apps)

most often weird errors are caused from deleted migrations

Ædel- Автор вопроса
Muflone
most often weird errors are caused from deleted mi...

true. i have done that several times. but mustn't it be gone after deleting the migrations folder, doing managep.py flush and also deleting sqlite3.db ? bcz it hasn't.

Похожие вопросы

Обсуждают сегодня

Anyone here suffers from unexplained aural migraines, who would be up for talking for a bit? Doesn't *have* to be aural, but I am not asking about headaches, I mean actual mi...
Martin Rys
55
Сonst magicTgHTML = (text, entities) => { let processedText = text; let offsetShift = 0; entities.forEach(entity => { const { offset, length, type, url, ...
Андрей
1
A couple thoughts from a random internet stranger: 1. If you want this project to gain traction you cannot keep being negative. If I just came here after finding out about Kd...
Eric Wild
45
Здравствуйте товарищи! решил всё таки поставить линукс. Порядок создание разделов /boot/efi 200МиБ; /boot 1000; подсистему / 80000; swap 8Гб Будет норм?
K2
19
How Will #Monero Be Attacked? First of all I want to tell you that this is not teaching the network attackers, the central regulators. They already know how to attack the net...
Li₿ΞʁLiøη
3
подскажите пожалуйста, как мне освободить результат записанный в переменную result? в чем проблема подскажите если МОЖЕТЕ?
Михаил Helper
28
we need to look at what power and capital monopolies are seeking to prevent or control in order to understand why it is important to keep building right now. the elites are go...
Noah
1
есть тут кто-то , кто только начал изучать си? если проходите курс на степике или как-то сами изучаете, пишите, может, скооперируемся?..
Eule
25
Слушайте, ещё такая интересная задачка. Сделан аудит действий пользователей через триггеры в базе, соответственно каждый пользователь имеет свой логин и пароль в базе. Это пре...
Сергей Бычков
12
Скажите, тут нет проблемы? IMyInterface1 = interface function GetInterface2: IInterface2; ... function TMyInterface.GetInterface2: IInterface2; begin Result := TI...
Ruslan aka DUDE
18
Карта сайта