15 lines
329 B
Python
15 lines
329 B
Python
|
|
from flask import Flask, render_template
|
|||
|
|
import simulation # <– eigene Logik einbinden
|
|||
|
|
|
|||
|
|
app = Flask(__name__)
|
|||
|
|
|
|||
|
|
@app.route('/')
|
|||
|
|
def index():
|
|||
|
|
zahl = simulation.würfeln()
|
|||
|
|
return render_template('index.html', zahl=zahl)
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
if __name__ == '__main__':
|
|||
|
|
app.run(host='0.0.0.0', port=5000, debug=True, use_reloader=False)
|