From: root Date: Sun, 17 May 2026 13:34:50 +0000 (+0800) Subject: Initial import X-Git-Url: http://acesimba.cloud/gitweb/?a=commitdiff_plain;h=ef52ae8dfd47f0651e720b429aebe3ae537bce04;p=studybase.git Initial import --- diff --git a/app.py b/app.py index bf73064..cc2b315 100644 --- a/app.py +++ b/app.py @@ -2,10 +2,30 @@ from flask import Flask, render_template 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 diff --git a/custom/conf/app.ini b/custom/conf/app.ini new file mode 100644 index 0000000..b3e5be5 --- /dev/null +++ b/custom/conf/app.ini @@ -0,0 +1,2 @@ +[server] +LOCAL_ROOT_URL = http://localhost:4999/ diff --git a/templates/index.html b/templates/index.html index 2c9c298..1e60134 100644 --- a/templates/index.html +++ b/templates/index.html @@ -10,10 +10,10 @@
- ① 科目面板 - ② 题目管理 - ③ 试卷管理 - ④ 系统设定 + ① 科目面板 + ② 题目管理 + ③ 试卷管理 + ④ 系统设定
diff --git a/templates/papers/index.html b/templates/papers/index.html new file mode 100644 index 0000000..65fb4ab --- /dev/null +++ b/templates/papers/index.html @@ -0,0 +1,20 @@ + + + + + 试卷管理 - 错题系统 + + + + + +
+

这里是试卷管理内容区域

+

正在从原 Python 程序迁移逻辑...

+ 返回首页 +
+ + diff --git a/templates/questions/index.html b/templates/questions/index.html new file mode 100644 index 0000000..4b36bab --- /dev/null +++ b/templates/questions/index.html @@ -0,0 +1,20 @@ + + + + + 科目面板 - 错题系统 + + + + + +
+

这里是科目面板内容区域

+

正在从原 Python 程序迁移逻辑...

+ 返回首页 +
+ + diff --git a/templates/settings/index.html b/templates/settings/index.html new file mode 100644 index 0000000..d2097d1 --- /dev/null +++ b/templates/settings/index.html @@ -0,0 +1,20 @@ + + + + + 系统设定 - 错题系统 + + + + + +
+

这里是系统设定内容区域

+

正在从原 Python 程序迁移逻辑...

+ 返回首页 +
+ + diff --git a/templates/subject/index.html b/templates/subject/index.html new file mode 100644 index 0000000..2f8730b --- /dev/null +++ b/templates/subject/index.html @@ -0,0 +1,20 @@ + + + + + 科目首页 - 错题系统 + + + + + +
+

这里是科目首页内容区域

+

正在从原 Python 程序迁移逻辑...

+ 返回首页 +
+ +