mirror of
https://github.com/EDeev/yandex_lyceum.git
synced 2026-06-15 11:01:04 +03:00
Add files via upload
This commit is contained in:
parent
fa70295876
commit
00a44e8216
2 changed files with 15 additions and 0 deletions
|
|
@ -42,5 +42,12 @@ def login():
|
|||
return render_template('login.html', **param, form=form)
|
||||
|
||||
|
||||
@app.route('/distribution')
|
||||
def success():
|
||||
param = {'title': "По каютам!", "users": ['Ридли Скотт', 'Энди Уир', 'Марк Уотни', "Венката Капур",
|
||||
'Тедди Сандерс', 'Шон Бин']}
|
||||
return render_template('distribution.html', **param)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(port=8080, host='127.0.0.1')
|
||||
|
|
|
|||
8
WEB. HTML flask-wtf/templates/distribution.html
Normal file
8
WEB. HTML flask-wtf/templates/distribution.html
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{% extends "base_two.html" %}
|
||||
|
||||
{% block content2 %}
|
||||
<h1 align="center">Размещение по каютам</h1>
|
||||
{% for user in users %}
|
||||
<h3>{{ user }} - Каюта № {{ loop.index }} {% if loop.first %} - первый в очереди {% endif %}</h3>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
Loading…
Add table
Reference in a new issue