Update app.py
Browse files
app.py
CHANGED
@@ -288,6 +288,12 @@ def login():
|
|
288 |
flash(f"Lỗi trong quá trình đăng nhập: {e}", "error")
|
289 |
return render_template('login.html')
|
290 |
|
|
|
|
|
|
|
|
|
|
|
|
|
291 |
# --- Chạy ứng dụng ---
|
292 |
if __name__ == '__main__':
|
293 |
app.run(debug=True, host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))
|
|
|
288 |
flash(f"Lỗi trong quá trình đăng nhập: {e}", "error")
|
289 |
return render_template('login.html')
|
290 |
|
291 |
+
@app.route('/solar_flow')
|
292 |
+
@require_page_password # Áp dụng bảo vệ nếu bạn muốn
|
293 |
+
def solar_flow():
|
294 |
+
"""Hiển thị trang giao diện hệ thống điện mặt trời với hoạt hình."""
|
295 |
+
return render_template('solar_flow.html')
|
296 |
+
|
297 |
# --- Chạy ứng dụng ---
|
298 |
if __name__ == '__main__':
|
299 |
app.run(debug=True, host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))
|