[Answer]-How to get the value from html form and use it in views.py?

1👍

You can get the value from html form to view use request arg,

def my_view(request, ):
   search_term = request.GET.get("q", None) #--> q means "name" of select box in html.
   # use search_term whatever you wants.
👤dhana

Leave a comment