Nauč se Python > Kurzy > Python for beginners in Tieto Czech > Regular Expressions > Final Assignment

Final Assignment – Řešení [13]

{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}

{% block title %}Flasky - Login{% endblock %}

{% block page_content %}
<div class="page-header">
    <h1>Login</h1>
</div>
<div class="col-md-4">
    {{ wtf.quick_form(form) }}
</div>
{% endblock %}

{% endfilter %}

{% filter solution %}
{% extends "base.html" %}

{% block title %}Flasky{% endblock %}

{% block page_content %}
<div class="page-header">
    <h1>Hello, {% if current_user.is_authenticated %}{{ current_user.username }}{% else %}Stranger{% endif %}!</h1>
</div>
{% endblock %}

Toto je stránka lekce z kurzu, který probíhá nebo proběhl naživo s instruktorem.