test
This commit is contained in:
@@ -46,6 +46,7 @@ def success():
|
|||||||
def view_users():
|
def view_users():
|
||||||
all_users = User.query.all()
|
all_users = User.query.all()
|
||||||
|
|
||||||
|
|
||||||
html_output = "<h2>Registered Accounts</h2><table border='1' cellpadding='10'>"
|
html_output = "<h2>Registered Accounts</h2><table border='1' cellpadding='10'>"
|
||||||
html_output += "<tr><th>ID</th><th>Username</th><th>Email</th></tr>"
|
html_output += "<tr><th>ID</th><th>Username</th><th>Email</th></tr>"
|
||||||
|
|
||||||
@@ -80,5 +81,9 @@ def signin():
|
|||||||
def signup():
|
def signup():
|
||||||
return render_template('signup.html')
|
return render_template('signup.html')
|
||||||
|
|
||||||
|
@app.route('/all_users')
|
||||||
|
def all_users():
|
||||||
|
return render_template('all_users.html')
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(debug=True)
|
app.run(debug=True)
|
||||||
|
|||||||
Binary file not shown.
@@ -0,0 +1,5 @@
|
|||||||
|
{% extends 'base.html' %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<iframe src="http://127.0.0.1:5000/users" width="100%" height="500px"></iframe>
|
||||||
|
{% endblock %}
|
||||||
@@ -11,6 +11,7 @@
|
|||||||
<li><a href="{{ url_for('home') }}">Home</a></li>
|
<li><a href="{{ url_for('home') }}">Home</a></li>
|
||||||
<li><a href="{{ url_for('bivariate') }}">Bivariate Data</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('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: auto;"><a href="{{ url_for('signup') }}">Sign Up</a></li>
|
||||||
<li style="margin-left:0px"><a href="{{ url_for('signin') }}">Sign In</a></li>
|
<li style="margin-left:0px"><a href="{{ url_for('signin') }}">Sign In</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -5,6 +5,8 @@
|
|||||||
|
|
||||||
<h1>homepage for math website wow</h1>
|
<h1>homepage for math website wow</h1>
|
||||||
|
|
||||||
|
<iframe src="http://127.0.0.1:5000/users" width="100%" height="500px"></iframe>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
Reference in New Issue
Block a user