<form action="{% url 'search' %}" method="get">
       <input class="search" type="text" name="q" placeholder="Search Encyclopedia"> 
</form>
How can I get the value of q to views.py
def search(request):
    return render(request, "encyclopedia/search.html")
Should I make it a post request instead of a get and then take the value. Help me plz