-
[Django] login 구현하기Python/Django 2021. 12. 21. 20:43
authenticate은 params로 username, password를 받고
만약 정보가 없다면 None을 반환한다
filter().exist()는 Boolean Type으로써
True of False를 반환함으로 상황에 맞게 알맞게 사용하면 된다.
'Python > Django' 카테고리의 다른 글
[Django] login user와 요청 user validate 해주기 (DetailView) (0) 2021.12.28 [Django] form에서 callback을 이용해서 validate해주자 (0) 2021.12.22 [Django]드디어 모양 나오는 중! (0) 2021.12.19 [Django] 쉽게 User을 Create 해보자 UserCreationForm (0) 2021.12.18 [Django] string 혹은 bytes 를 content file로 managing 해주자 (0) 2021.12.18