To redirect to another page while carrying along the the current query strings:
views.py
:
from django.urls import reverse
from django.shortcuts import redirect
def my_view(request):
#get the current query string
q = request.META['QUERY_STRING']
return redirect(reverse('search_view') + '?' + q)