Django 로 개발을 하던 중 auth 라는 이름을 가진 Custom app을 INSTALLED_APP에 추가하니 오류가 발생했다.
기존의 "django.contrib.auth" 앱과 중복되었기 때문이다.
https://code.djangoproject.com/ticket/21562
#21562 (Bad things happen if you name your custom user app "auth") – Django
Bad things happen if you name your custom user app "auth" Reported by: Charlie DeTar Owned by: nobody Component: Documentation Version: dev Severity: Normal Keywords: Cc: Triage Stage: Accepted Has patch: yes Needs documentation: no Needs tests: no Patch n
code.djangoproject.com
새로운 이름으로는 accounts가 적절 할 것 같다.
이름 변경 후에 users 앱과 통합시켜야 겠다.
깃허브 링크
https://github.com/Doran-Doran-development/DoranDoran-Server-2
Doran-Doran-development/DoranDoran-Server-2
🧮 교내 실습실 예약 및 관리 웹 서비스 '도란도란'의 서버를 개발한 레포지토리 입니다. Contribute to Doran-Doran-development/DoranDoran-Server-2 development by creating an account on GitHub.
github.com
'Python' 카테고리의 다른 글
| TypeError: 'property' object is not iterable (0) | 2021.06.02 |
|---|---|
| [Python] unittest 모든 테스트 코드 실행하기 (0) | 2021.05.29 |
| [Django ] Django TypeError: send_mail() missing 1 required positional argument: 'from_email' (0) | 2021.05.22 |
| [Python] namespace란 (0) | 2021.05.12 |
| [Python] 메타클래스(metaclass) 란? (0) | 2021.05.11 |