This commit is contained in:
ralphi3
2026-06-18 11:25:40 +12:00
parent 9de5e72bb4
commit 7354f8a160
5 changed files with 13 additions and 0 deletions
+5
View File
@@ -46,6 +46,7 @@ def success():
def view_users():
all_users = User.query.all()
html_output = "<h2>Registered Accounts</h2><table border='1' cellpadding='10'>"
html_output += "<tr><th>ID</th><th>Username</th><th>Email</th></tr>"
@@ -80,5 +81,9 @@ def signin():
def signup():
return render_template('signup.html')
@app.route('/all_users')
def all_users():
return render_template('all_users.html')
if __name__ == '__main__':
app.run(debug=True)
Binary file not shown.
+5
View File
@@ -0,0 +1,5 @@
{% extends 'base.html' %}
{% block content %}
<iframe src="http://127.0.0.1:5000/users" width="100%" height="500px"></iframe>
{% endblock %}
+1
View File
@@ -11,6 +11,7 @@
<li><a href="{{ url_for('home') }}">Home</a></li>
<li><a href="{{ url_for('bivariate') }}">Bivariate Data</a></li>
<li><a href="{{ url_for('about') }}">About</a></li>
<li><a href="{{ url_for('all_users') }}">all_users</a></li>
<li style="margin-left: auto;"><a href="{{ url_for('signup') }}">Sign Up</a></li>
<li style="margin-left:0px"><a href="{{ url_for('signin') }}">Sign In</a></li>
</ul>
+2
View File
@@ -5,6 +5,8 @@
<h1>homepage for math website wow</h1>
<iframe src="http://127.0.0.1:5000/users" width="100%" height="500px"></iframe>
</div>
{% endblock %}