분류 전체보기590 [pandas] 문자열 (str) 처리법 m.blog.naver.com/PostView.nhn?blogId=wideeyed&logNo=221603778414&proxyReferer=https:%2F%2Fwww.google.com%2F [Pandas] 문자열(str) 처리법 Pandas에는 문자열을 다루는 여러 함수가 존재합니다.e메일 주소를 이용하여 어떤 종류들의 함수가 있는지... blog.naver.com 2020. 9. 9. 파이썬 __builtin__ module attr 함수들 getAttr() value 뿐만 아니라 method도 getattr() function으로 가져올 수 있고, handler = getattr(self, "get", .. ) 으로 get function의 address를 handler 변수에 저장하여 get 함수를 handler("aaaa", "bbbb") 처럼 호출할 수 있다. - https://technote.kr/249 setAttr() - https://technote.kr/248 hasAttr() - https://technote.kr/251 delAttr() - https://technote.kr/250 2020. 8. 23. djagno 현재 활성화된 User Model 가져오는 법 from django.contrib.auth import get_user_model User =get_user_model() 2020. 8. 22. Django models.py에서 현재 프로젝트에 활성화된 User를 가져오는 법 ForeignKey 등에 추가할 때 from django.conf import settings 후 settings.AUTH_USER_MODEL 으로 User model 정보를 가져오는 방법이 옳은 방법이다. 왜나하면 이렇게 해야 프로젝트에서 장고 기본 User model을 사용하지 않고 Custom User Model을 정의해서 사용할 때 settings.py에 설정해 놓은 AUTH_USER_MODEL 값의 Custom User Model 정보를 읽을 수 있다. 2020. 8. 22. 이전 1 ··· 93 94 95 96 97 98 99 ··· 148 다음