2023-03-23
flask, pymongf, dnspython, requests, bs4를 한번에 설치하는 법
터미널에 pip tnstall 뒤에 설치하고자 하는 것을 설치 한다.
pip install flask pymongo dnspython requests bs4
어제와 동일한 프로젝트 진행중 mongodb에 입력된 데이터 확인이 되지 않음.
import certifi
ca = certifi.where()
-어제와 동일-
post과정중 2개 이상을 post하는 경우 단 하나라도 오류 및 오타가 있는 경우 전체가 저장이 되지않는다.
예) 하단의 코딩은 정상 작동
@app.route("/movie", methods=["POST"])
def movie_post():
url_receive = request.form['url_give']
comment_receive = request.form['comment_give']
star_receive = request.form['star_give']
예)하단의 코딩은 오류 발생(POST작동X)
@app.route("/movie", methods=["POST"])
def movie_post():
url_receive = request.form['url_give']
comment_receive = request.form['coment_give']
star_receive = request.form['star_give']
comment를 coment로 오타의 경우
comment_receive = request.form['coment_give']만 저장소로 안 보내지는 것이 아닌 전부가 안 들어온다.
즉 Url, Comment, star모두 해당이 된다.
def movie_post():에 의해서 url, comment, star가 하나로 묶여져 있어서 그런것 으로 보인다.
AWS관련하여...
로그인 후 내가 원하는 대시보드가 바로 나오지 않음
상단의 빨간 박스 클릭 후 "보안 자격 증명" 클릭
원하는 대시보드가 나오며 우측에 IAM사용자를 위한 주소도 확인 가능