From 34cb097cf3beed3f4b66674b1fbdd9d9ba7968d5 Mon Sep 17 00:00:00 2001 From: hjdhnx Date: Sun, 28 Aug 2022 14:15:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BE=8E=E5=8C=96=E9=A6=96=E9=A1=B5,=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=9C=A8=E7=BA=BF=E8=BF=9B=E7=A8=8B=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E8=B6=85=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 5 ++--- templates/index.html | 20 +++++++++++++++++--- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/app.py b/app.py index c979ae3..13358e4 100644 --- a/app.py +++ b/app.py @@ -63,9 +63,8 @@ def forbidden(): # put application's code here @app.route('/index') def index(): # put application's code here # logger.info("进入了首页") - a = redirect(url_for('vod')).headers['Location'] - print(a) - return render_template('index.html',getHost=getHost) + manager = getHost(1).split(':')[0] + ':9001' + return render_template('index.html',getHost=getHost,manager=manager) @app.route('/vod') def vod(): diff --git a/templates/index.html b/templates/index.html index ff78fb7..7ae617e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -13,18 +13,28 @@ - + +

欢迎使用dr_py项目

可以简单的自定义爬虫实现cms数据接口

+ @@ -60,6 +71,9 @@
局域网配置地址
+
+ 局域网在线进程管理 +
{% endif %}
远程配置地址 -- GitLab