커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
localhost오류
undefined주차
북마크
Y***********E
댓글
9
추천
1
조회수
20
조회수
20
답변 완료

4-6 화성땅 강의에서 붙이라는 대로 붙였는데 localhost 액세스 거부됨으로 뜹니다. ERROR 403이에요


def web_mars_post():
sample_receive = request.form['sample_give']
print(sample_receive)
return jsonify({'msg': 'POST 연결 완료!'})

@app.route("/mars", methods=["GET"])
def web_mars_get():
return jsonify({'msg': 'GET 연결 완료!'})

if __name__ == '__main__':
app.run('0.0.0.0', port=5000, debug=True)

---실행창----

 

File "/Users/carolineyoon/Desktop/Sparta/projects/mars/app.py", line 6

  return render_template('index.html')

  ^

IndentationError: expected an indented block


종료 코드 1(으)로 완료된 프로세스


------------

6번줄에 오류있다고해서 봤는데

인덱스 파일도 제대로 만든것같은데.. 아닌가요?ㅠ

스파르타 즉문즉답


취소
 공유
취소
댓글 0
댓글 알림
나의얼굴