Spaces:
Runtime error
Runtime error
flask app with external mysql
Browse files- __pycache__/app.cpython-39.pyc +0 -0
- templates/index.html +22 -0
__pycache__/app.cpython-39.pyc
ADDED
|
Binary file (896 Bytes). View file
|
|
|
templates/index.html
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<html>
|
| 2 |
+
<head>
|
| 3 |
+
<title>Flask App with MySQL</title>
|
| 4 |
+
</head>
|
| 5 |
+
<body>
|
| 6 |
+
<h1>Users</h1>
|
| 7 |
+
<table>
|
| 8 |
+
<tr>
|
| 9 |
+
<th>ID</th>
|
| 10 |
+
<th>Name</th>
|
| 11 |
+
<th>Email</th>
|
| 12 |
+
</tr>
|
| 13 |
+
{% for row in data %}
|
| 14 |
+
<tr>
|
| 15 |
+
<td>{{ row[0] }}</td>
|
| 16 |
+
<td>{{ row[1] }}</td>
|
| 17 |
+
<td>{{ row[2] }}</td>
|
| 18 |
+
</tr>
|
| 19 |
+
{% endfor %}
|
| 20 |
+
</table>
|
| 21 |
+
</body>
|
| 22 |
+
</html>
|