에러 발생
Method Not Allowed The method is not allowed for the requested URL
데이터 저장 후 새로고침하는 과정에서 위와 같은 오류페이지가 떴다.
해당 method로의 요청을 허용하지 않는 API라는 뜻이라구 함
해결 방법
[app.py]
@app.route('/', methods=["GET","POST"])
def home():
return render_template('index.html')
methods를 GET, POST 둘 다 넣어주니 제대로 작동
'Python' 카테고리의 다른 글
[에러해결] WARNING: You are using pip version ... (0) | 2023.04.14 |
---|---|
[Library] BeautifulSoup 크롤링 (0) | 2023.04.14 |
[Library] requests (0) | 2023.04.14 |
Python 기초 (0) | 2023.04.14 |
Python 설치 (0) | 2023.04.14 |