Lemonbase Onboarding - Django 기반 백엔드 개발

장고 인증 시스템(Django Authentication System) 사용

* 녹화가 중간에 잘려서 마지막에 구현하는 부분이 잘렸습니다.. (30분 정도?)
User Authentication 관련 문서 목차: https://docs.djangoproject.com/en/3.0/topics/auth/
django.contrib.auth (User 모델 등)에 관한 Full Reference: https://docs.djangoproject.com/en/3.0/ref/contrib/auth/
기본 설정 예제: https://docs.djangoproject.com/en/3.0/topics/auth/default/ 
참고 - Proxy Model: 새로운 테이블을 생성하지 않고, 데이터 조회 시 등에 특정한 기본 설정을 적용하고 싶을 때 사용
https://docs.djangoproject.com/en/3.0/topics/db/models/#proxy-models
장고 공식 문서에서는
새 프로젝트 시작 시 Default User 모델을 상속하는 Custom User 모델을 먼저 선언하는 것을 추천함
(기본 모델로 충분할지라도)
https://docs.djangoproject.com/en/3.0/topics/auth/customizing/#using-a-custom-user-model-when-starting-a-project
--다만! Reusable App을 만들 때에는 상속을 하면 안 됨
https://docs.djangoproject.com/en/3.0/topics/auth/customizing/#reusable-apps-and-auth-user-model

댓글

댓글 본문
버전 관리
김시준
현재 버전
선택 버전
graphittie 자세히 보기