Update app.py
Browse files
app.py
CHANGED
|
@@ -1,10 +1,14 @@
|
|
| 1 |
-
from flask import
|
| 2 |
app=Flask(__name__)
|
| 3 |
|
| 4 |
@app.route('/')
|
| 5 |
def home():
|
| 6 |
return "HELLO WORLD"
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
if __name__=="main": #calling main driver function
|
| 10 |
app.run(debug=True, host='0.0.0.0', port=7860)
|
|
|
|
| 1 |
+
from flask import *
|
| 2 |
app=Flask(__name__)
|
| 3 |
|
| 4 |
@app.route('/')
|
| 5 |
def home():
|
| 6 |
return "HELLO WORLD"
|
| 7 |
|
| 8 |
+
@app.route('/table/<int:num>')
|
| 9 |
+
def table(num):
|
| 10 |
+
return render_template('table.html',n=num)
|
| 11 |
+
|
| 12 |
|
| 13 |
if __name__=="main": #calling main driver function
|
| 14 |
app.run(debug=True, host='0.0.0.0', port=7860)
|