SIGSEGV: invalid_state trang lỗi /admin/judge/profile/add/ site: fatal signal: Segmentation fault site died (signal 500, exit -11)
HVThangQBU opened this issue · comments
HVThangQBU commented
Add any other context about the problem here.
File "/usr/local/lib/python3.11/site-packages/django/db/models/fields/related_descriptors.py", line 197, in get
raise self.RelatedObjectDoesNotExist(
judge.models.profile.Profile.user.RelatedObjectDoesNotExist: Profile has no user.
Le Duy Thuc commented
This is because you add the user by the admin panel so the User
instance has not been created a long with the Profile that causes the issue
Advice 1: don't do that again
Advice 2: Good luck