flask @app.route('/')
def index():
return render_template('index.html')
위와 같이 render_template을 사용하였는데 500 internal server error가 뜬다면
index.html 파일이 templates 폴더 안에 있는지 확인
'Programming > Solution' 카테고리의 다른 글
| [MySQL] function 생성: Sequel Pro (6) | 2020.06.27 |
|---|---|
| [Error] JqGrid JsonReader: pager 데이터 출력 안됨(TIMESTAMP) (6) | 2020.06.19 |
| [Error] 'lateinit' modifier is allowed only on mutable properties : Kotlin (5) | 2020.05.27 |
| [Error] UnicodeEncodeError: 'latin-1' codec can't encode characters: Python (6) | 2019.12.08 |
| [Error] flask 실행 실패: Errno 48 (7) | 2019.12.07 |