signupできない。
IntegrityError at /account/signup/
duplicate key value violates unique constraint "account_customuser_usrename_key"
DETAIL: Key (usrename)=() already exists.
Request Method: POST
Request URL: http://172.20.10.14:8000/account/signup/
Django Version: 5.1.6
Exception Type: IntegrityError
Exception Value:
duplicate key value violates unique constraint "account_customuser_usrename_key"
DETAIL: Key (usrename)=() already exists.
Exception Location: /workspace/senrigan/.venv/lib/python3.12/site-packages/psycopg/cursor.py, line 97, in execute
Raised during: account.views.signup
ユーザー名のフィールドがusrenameになってた。
- usrename = models.CharField(max_length=20, unique=True)
+ username = models.CharField(max_length=20, unique=True)