title: How to find not null variables from URL query string? or can we get the variable in URL query string from request in python
body: <p>I want to filter data based on multiple fields in Django python.<br> The scenario is, if a GET request to webserver comes as <code>/searchStudent/?firstName=&amp;lastName=xyzage=23&amp;class=&amp;city=</code> and we dont know what can be the possible parameter in query string, some of them can come with value and some variable doesnot comes with value. The question is, is there any to get the variable which have only value or which dont have values from request. I know we can simply getting value by using <code>request.GET.get('city')</code> but I am finding way for getting the non null variable from query string, is there any way to find the non value variable from query string? In above scenario <code>city, class, and firstName</code> doesn't have values and I dont want to add it on filter. what will be the right approach? please suggest the right way.</p>