ПЯ
@app.route('/login',methods=['GET'])
def login():
return render_template('login.html')
@app.route('/logina',methods=['POST'])
def logina():
uLogin = request.form['login']
uPassword = request.form['password']
with open('database.json') as db:
user_data = json.loads(db)
if uLogin in user_data and user_data[uLogin] == str(uPassword):
return render_template('useraccount.html')
else:
return redirect(url_for('login'))
Internal Server ErrorThe 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.
Учусь делать веб-приложения, может кто подскажет, в чем проблема?


