@main.route('/')
def index():
- devices = []
-
-
+ devices = Device.query.all()
return render_template('index.html', devices=devices)
--- /dev/null
+{% extends "base.html" %}
+
+{% block title %}Sirius - Dump{% endblock %}
+
+{% block page_content %}
+<h1>Dump page</h1>
+
+<pre>
+{{ dump }}
+</pre>
+
+{% endblock %}
\ No newline at end of file
{% block page_content %}
<h1>Hello, World!</h1>
+
+<ul>
+ {% for d in devices %}
+ <li><a href="{{ url_for('main.device', device_address=d.device_address) }}">{{ d.device_address }}</a></li>
+ {% endfor %}
+</ul>
+
{% endblock %}
\ No newline at end of file