पहली बार फ्लास्क सीखना और मैं ट्यूटोरियल के बाद चीजों को बनाने की कोशिश कर रहा हूं। जब मैं इस यूआरएल को इनपुट करता हूं तो मुझे यह संदेश अपने ब्राउज़र में मिल रहा है:आंतरिक सर्वर त्रुटि फ्लास्क
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