Петон
class LoginForm(Form):
username = TextField('Username')
password = PasswordField('Password')
form = LoginForm()
<form method="POST" action="/login">
<div>{{ form.username.label }}: {{ form.username(class="css_class") }}</div>
<div>{{ form.password.label }}: {{ form.password() }}</div>
</form>