티스토리 뷰
아래와 같은 에러 발생. 약간 기존의 무언가와 새로 migrations 하려는 무언가가 겹치는 모양이다.
>> python manage.py makemigrations
SystemCheckError: System check identified some issues:
ERRORS:
auth.User.groups: (fields.E304) Reverse accessor for 'User.groups' clashes with reverse accessor for 'User.groups'.
HINT: Add or change a related_name argument to the definition for 'User.groups' or 'User.groups'.
auth.User.user_permissions: (fields.E304) Reverse accessor for 'User.user_permissions' clashes with reverse accessor for 'User.user_permissions'.
HINT: Add or change a related_name argument to the definition for 'User.user_permissions' or 'User.user_permissions'.
users.User.groups: (fields.E304) Reverse accessor for 'User.groups' clashes with reverse accessor for 'User.groups'.
HINT: Add or change a related_name argument to the definition for 'User.groups' or 'User.groups'.
users.User.user_permissions: (fields.E304) Reverse accessor for 'User.user_permissions' clashes with reverse accessor for 'User.user_permissions'.
HINT: Add or change a related_name argument to the definition for 'User.user_permissions' or 'User.user_permissions'.
settings.py 안에 다음과 같이 추가하기
>> AUTH_USER_MODEL = 'APPNAME.User'
이것으로 하여금 장고에게 디폴트 값 대신에 우리가 만든 모델을 사용하겠다고 말해주는 것.
'python' 카테고리의 다른 글
[python django] error handling (UserLoginView, UserCreateView, authenticate, login, register) (0) | 2020.01.12 |
---|---|
[python django] error handling (0) | 2020.01.08 |
[python django] django 기초(2) 태그 및 내용 정리 (0) | 2019.12.20 |
[python django] django 기초 (3) pythonanywhere 배포 (0) | 2019.12.20 |
[python django] django 기초 (1) (0) | 2019.12.20 |
- Total
- Today
- Yesterday
- Firebase 데이터베이스 추천
- pythonanywhere배포방법
- cleaned_data
- python 웹 배포
- 알파벳 카운팅
- django pythoneverywhere
- UITableViewController Not Working
- Django
- 테이블출력안됨
- django 태그
- iOS 화면 안나옴
- django 게시판
- django 로그인접근
- iOS UITableView 출력안됨
- 데이터베이스 추천
- ModelForm Form 차이
- pythonanywhere배포
- django tag
- CellForRowAt Not Called
- iOS 검은 화면
- CellForRowAt 호출안됨
- 장고 게시판
- Realtime Database
- 까만 화면
- iOS 데이터베이스
- 웹 배포
- 장고 태그달기
- django clean
- 실시간 데이터베이스
- django 개발일지
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |