Zaktualizuj 'restart_this_app.py'
This commit is contained in:
parent
ea1c0a7017
commit
ec1076da27
@ -1,14 +1,14 @@
|
||||
from flask import Flask, render_template
|
||||
import json
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route('/restart-this-app')
|
||||
def render_message():
|
||||
with open('data.json', encoding='UTF-8') as file:
|
||||
data = json.load(file)
|
||||
|
||||
return render_template('index.html', data=data)
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host='0.0.0.0', port=5002)
|
||||
from flask import Flask, render_template
|
||||
import json
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route('/restart-this-app')
|
||||
def render_message():
|
||||
with open('data.json', encoding='UTF-8') as file:
|
||||
data = json.load(file)
|
||||
|
||||
return render_template('index.html', data=data)
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host='0.0.0.0', port=5004)
|
Loading…
Reference in New Issue
Block a user