error3 [Django Framework (5) error 메세지구현] 내일배움캠프 AI트랙 회원가입이나 로그인을 할때 사용자가 좀 더 편리하게 서비스를 사용할 수 있도록 예외처리를 하는 작업을 한다. error 메세지를 alert으로 띄우면 어떤 부분이 잘못되었는지를 쉽게 알 수 있기 때문에 사용자 친화적이라고 볼 수 있다. 회원가입/로그인 error 메세지 설정 views.py에서 html과 함께 error를 보내준다. def sign_up_view(request): if request.method == 'GET': # GET 메서드로 요청이 들어 올 경우 user = request.user.is_authenticated if user: return redirect('/') else: return render(request, 'user/signup.html') elif request.meth.. 2022. 1. 25. [Python tensorflow 설치오류] I tensorflow/core/platform/cpu_feature_guard.cc:151 I tensorflow/core/platform/cpu_feature_guard.cc:151] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 해결방법 import os 하단에 아래 코드 추가 os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' 코드설명 로그레벨이 3이 되.. 2022. 1. 10. [mongoDB Atlas 오류] pymongo.errors.ServerSelectionTimeoutError: mongoDB Atlas에서 받은 application 코드를 python에 입력하여 데이터를 DB로 insert 하는데 뭔가가 심상치 않음을 발견했다. 계속해서 아래와 같이 에러코드가 뜨는 것! pymongo.errors.ServerSelectionTimeoutError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate 해결방법은 이렇다. 1) 파이썬 라이브러리 패키지(pip)로 certifi 설치 Pycharm - Preferences - python 인터프리터 - '+' 버튼 눌러서 패키지 설치 혹은 터미널에서 pip install certifi 실행 2) python 파.. 2021. 12. 15. 이전 1 다음