<form class="navbar-form navbar-left" action="{% url 'search' %}" method='post'>
    {% csrf_token %}
    <div class="form-group">
        <input type="text" name='search' class="form-control" placeholder="Search"{% if query_text %} value="{{ query }}"{% endif %}>
    </div>
    <button type="submit" id='search-submit' class="btn btn-default">Search</button>
</form>
