ㅁㄴㅇㄻㄴㅇㄹ

[Django] Django duplicate app name "auth" 본문

Django

[Django] Django duplicate app name "auth"

hanbin8269 2021. 5. 22. 20:25

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