user

FrameWork/Django

[Django] User Model 확장하기

📚 django UserModel Django 에서는 표준 User Model을 제공하고 있다. 해당 User Model은 django.contrib.auth.models.User에 다음과 같이 정의 되어 있다. class User(AbstractUser): class Meta(AbstractUser.Meta): swappable = 'AUTH_USER_MODEL' 아래는 User 모델에서 정의되어 있는 칼럼들이다. username = models.CharField() first_name = models.CharField() last_name = models.CharField() email = models.EmailField() is_staff = models.BooleanField() is_active..

FrameWork/Django

ValueError: The field admin.LogEntry.user was declared with a lazy reference to 'accounts.account', but app 'accounts' doesn't provide model ' 에러 해결

상황 django에서 유저 모델을 만들어서 migrate하는 도중에 해당 오류가 발생하였다. 해결 https://stackoverflow.com/questions/50324561/valueerror-the-field-admin-logentry-user-was-declared-with-a-lazy-reference ValueError: The field admin.LogEntry.user was declared with a lazy reference I'm developing a new django project and stuck with migration. I would like to make a UserModel, and in order to do that, I did two things so far...

JHeaon
'user' 태그의 글 목록