app = Flask(__name__)
+# 首页
@app.route('/')
def index():
return render_template('index.html')
+# 科目面板
+@app.route('/subject/')
+def subject():
+ return render_template('subject/index.html')
+
+# 题目管理
+@app.route('/questions/')
+def questions():
+ return render_template('questions/index.html')
+
+# 试卷管理
+@app.route('/papers/')
+def papers():
+ return render_template('papers/index.html')
+
+# 系统设定
+@app.route('/settings/')
+def settings():
+ return render_template('settings/index.html')
+
if __name__ == '__main__':
- # host='0.0.0.0' 允许公网访问,port=5000 指定端口
app.run(host='0.0.0.0', port=5000)
\ No newline at end of file
--- /dev/null
+[server]
+LOCAL_ROOT_URL = http://localhost:4999/
<div class="navbar">错题智能整理系统</div>
<div class="container">
- <a href="#" class="card card-subject"><span class="icon-num">①</span> 科目面板</a>
- <a href="#" class="card card-question"><span class="icon-num">②</span> 题目管理</a>
- <a href="#" class="card card-paper"><span class="icon-num">③</span> 试卷管理</a>
- <a href="#" class="card card-setting"><span class="icon-num">④</span> 系统设定</a>
+ <a href="/subject/" class="card card-subject"><span class="icon-num">①</span> 科目面板</a>
+ <a href="/questions/" class="card card-question"><span class="icon-num">②</span> 题目管理</a>
+ <a href="/papers/" class="card card-paper"><span class="icon-num">③</span> 试卷管理</a>
+ <a href="/settings/" class="card card-setting"><span class="icon-num">④</span> 系统设定</a>
</div>
</body>
</html>
--- /dev/null
+<!DOCTYPE html>
+<html lang="zh">
+<head>
+ <meta charset="UTF-8">
+ <title>试卷管理 - 错题系统</title>
+ <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
+ <style>
+ .sub-container { padding: 50px; text-align: center; }
+ .back-btn { display: inline-block; margin-top: 20px; padding: 10px 20px; background: #666; color: white; text-decoration: none; border-radius: 5px; }
+ </style>
+</head>
+<body>
+ <div class="navbar">试卷管理</div>
+ <div class="sub-container">
+ <h2>这里是试卷管理内容区域</h2>
+ <p>正在从原 Python 程序迁移逻辑...</p>
+ <a href="/" class="back-btn">返回首页</a>
+ </div>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<html lang="zh">
+<head>
+ <meta charset="UTF-8">
+ <title>科目面板 - 错题系统</title>
+ <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
+ <style>
+ .sub-container { padding: 50px; text-align: center; }
+ .back-btn { display: inline-block; margin-top: 20px; padding: 10px 20px; background: #666; color: white; text-decoration: none; border-radius: 5px; }
+ </style>
+</head>
+<body>
+ <div class="navbar">科目面板</div>
+ <div class="sub-container">
+ <h2>这里是科目面板内容区域</h2>
+ <p>正在从原 Python 程序迁移逻辑...</p>
+ <a href="/" class="back-btn">返回首页</a>
+ </div>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<html lang="zh">
+<head>
+ <meta charset="UTF-8">
+ <title>系统设定 - 错题系统</title>
+ <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
+ <style>
+ .sub-container { padding: 50px; text-align: center; }
+ .back-btn { display: inline-block; margin-top: 20px; padding: 10px 20px; background: #666; color: white; text-decoration: none; border-radius: 5px; }
+ </style>
+</head>
+<body>
+ <div class="navbar">系统设定</div>
+ <div class="sub-container">
+ <h2>这里是系统设定内容区域</h2>
+ <p>正在从原 Python 程序迁移逻辑...</p>
+ <a href="/" class="back-btn">返回首页</a>
+ </div>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<html lang="zh">
+<head>
+ <meta charset="UTF-8">
+ <title>科目首页 - 错题系统</title>
+ <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
+ <style>
+ .sub-container { padding: 50px; text-align: center; }
+ .back-btn { display: inline-block; margin-top: 20px; padding: 10px 20px; background: #666; color: white; text-decoration: none; border-radius: 5px; }
+ </style>
+</head>
+<body>
+ <div class="navbar">科目首页</div>
+ <div class="sub-container">
+ <h2>这里是科目首页内容区域</h2>
+ <p>正在从原 Python 程序迁移逻辑...</p>
+ <a href="/" class="back-btn">返回首页</a>
+ </div>
+</body>
+</html>