게시판 만들기가 안됩니다
587
이형주
작성한 질문수 1
1
from flask import Flask
from flask import request
from flask import render_template
app = Flask(__name__)
@app.route("/route", methods=["GET", "POST"])
def board_write():
if request.method == "POST":
name=request.form.get("name")
title = request.form.get("title")
contents = request.form.get("contents")
else:
return render_template("write.html")
if __name__ == "__main__":
app.run(host="0.0.0.0", debug=True, post=9000)
* Serving Flask app 'run' (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: on
Traceback (most recent call last): File "C:\python\myweb\run.py", line 19, in <module> app.run(host="0.0.0.0", debug=True, post=9000) File "C:\python\myweb\venv\lib\site-packages\flask\app.py", line 922, in run run_simple(t.cast(str, host), port, self, **options) TypeError: run_simple() got an unexpected keyword argument 'post'
문제 되는 922 줄 코드
try:
run_simple(t.cast(str, host), port, self, **options)
finally:
# reset the first request information if the development server
# reset normally. This makes it possible to restart the server
# without reloader and that stuff from an interactive shell.
self._got_first_request = False
이런식으로 되어있더라구여
답변 1
iis 접속후 자동으로 로그인 창이 나오도록 설정이 기능한가요?
0
83
2
리스트 이동 시 창 에러 발생
0
89
1
배포후 회원 등록 후 로그인 에러...
0
87
2
내부 서버 오류
0
85
2
app.config["MONGO_URI"] = "mongodb://localhost:27017/pm_db"
0
65
2
DB 검색하면 데이터가 없습니다. 라고 나와요. 5시간을 찾아봐도 모르겠어서 문의드려봅니다.
0
62
1
몽고db studio3T를 깔았는데
0
70
2
flake8과 linter
0
88
3
500이 뜹니다.
0
66
2
첨부파일 삭제
0
73
2
검색기능 질문
0
74
2
google.py
0
75
2
Studio 3T에 DB insert가 되지 않는 문제를 해결하지 못하고 있습니다 ㅠ
0
92
3
혹시 전체 코드 공개되어 있나요?
0
100
1
join.html 의 form 태그값 을 member_join() 에서 처리못함.
0
112
1
google.py 몽고db 샘플데이터 만들기
0
110
2
flake8 설치 이후 명령팔레트에서 linter가 안보입니다.
0
250
2
파이썬으로 만들어서 웹호스팅에 올릴경우
0
314
1
현재 구글검색 무한스크롤변경 문의합니다
0
306
1
몽고디비아틀라스로 추가 공부해서 올립니다.
0
222
1
IIS 500.19에러
0
667
2
버전 문제도 수정했는데 결과가 안나옵니다.
0
264
1
데이터베이스 저장관련 질문입니다.
0
279
1
test가 생기지 않습니다.
0
517
3





