I would usually do this in ajax I think.
But if for example I have a button and a search input box that will have a query value, how can I pass the search value (and possibly multiple values/parameters that is not obtained through a form field) to Django views on button click to the url?
HTML
<div>
<input id="search" name="search" type="text" class="query-search" placeholder="Search...">
<a class="btn btn-primary btn-lg btn-space col-sm-3" href="{% url 'routes_view' %}">View Routes</a>
</div>
Views
def view_detail(request):
...
<How to get values from HTML without using ajax? Or its the only way?>
URLs
url(r'^view/', views.view_detail, name='view_detail')