<!doctype html>
<html>
<head>
    <meta charset="utf-8" />
    <title>Search</title>
</head>

<body>
 
    <form action="" method="post">
        {% csrf_token %}
        <!-- {% for field in form %}
            <p>
                <label>{{ field.label }}</label>
 
                {{ field }}
 
                {{ field.errors }}
            </p>
        {% endfor %} -->
        {{ form.as_p }}
        <input type="submit" value="Отправить">
    </form>
    
    {% if form.errors %}
        <p style="color: red;">Пожалуйста, исправьте ошибки.</p>
    {% endif %}
    
</body>
</html>