Commit f251d850 authored by SimonGlomb's avatar SimonGlomb
Browse files

use html template

parent f937687e
from flask import Flask
from flask import Flask, render_template
import os
app = Flask(__name__)
@app.route("/")
def hello_world():
return "<p>Hello, World!</p>"
return render_template('start_page.html')
@app.route("/run_code")
def run_code():
os.system("python ./code/main.py")
return "<p>some text</p>"
return "<p>Back to Main Page</p>"
@app.route("/oc-dfg/<int:dfg_num>")
def get_oc_dfg():
return
if __name__ == "__main__":
app.run()
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment