{% if messages %}
    {% for message in meesages %}
        <div>
            <strong>{{message|safe}}</strong>
        </div>
    {% endfor %}
{% else %}
<form method="post" enctype="multipart/form-data">
    {% csrf_token %}
    <label>Upload a file</label>
    <input type='file' name='file'>
    <p>Only accepts CSV files</p>
    <button type='submit'>Upload</button>
</form>
{% endif %}