처음으로 Flask를 학습하고 튜토리얼을 따라 물건을 만들려고합니다. 이 URL을 입력하면 브라우저에이 메시지가 나타납니다.내부 서버 오류 Flask
http://127.0.0.1:5000/index
127.0.0.1 - - [16/Jun/2014 19:37:41] "GET /index HTTP/1.1" 500 -
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
왜이 오류가 발생하는지 잘 모르겠습니다. 누군가 나를 도울 수 있었고 그 이유를 말해 줄 수 있었습니까? 나는 플라스크에 새로운 오전 및 웹 개발
코드 :
from flask import Flask, request, make_response, redirect, render_template
from flask.ext.script import Manager
from flask.ext.bootstrap import Bootstrap
app = Flask(__name__)
manager = Manager(app)
bootstrap = Bootstrap(app)
@app.route('/index')
def index():
return render_template('index.html')
@app.route('/user/<name>')
def user(name):
return render_template('user.html', name = name)
if __name__ == '__main__':
#app.run(debug = True)
manager.run()
index.html을 :
/Flask_0_11
/templates
base.html
index.html
user.html
hello.py