I’ve been looking for the right syntax to do this and haven’t found something that works.
search_string is the parameter to be passed to the urls.py and views.py but i’m not sure about the value syntax to pass that string properly. Thanks
<form action="{% url 'searchnet:search' search_string=request.GET.get('search') %}" class="col-12 col-lg-auto mb-3 mb-lg-0 me-lg-3">
<input type="search" id="search_bar" name="search" method="GET" class="form-control" placeholder="Search.. Anything, Anytime, Anyone, Anywhere, Anyhow" aria-label="Search">
</form>
and get this error:
Could not parse the remainder: ‘(‘search’)’ from ‘request.GET.get(‘search’)’
I’ve seen many questions about this error while researching it, but can’t figure out how it pertains to my case. I can’t get anything to work. Can one of you folks see where I’m in error here? thanks