In Python and GAE, I would like to ask how to get query string parameters in a url. How do I know the query_string part returns the whole part after "?" in the url. So I need to break the query string into "&" and use the variables. Is there any other convenient way to control the query string? How do you usually do this?
str_query = self.request.query_string m = str_query.split('&') a = m[0] b = m[1] c = m[2]
Executing this path, in case the query_string does not have any values, it generated an error:
IndexError: list index out of range
python google-app-engine
Hoang pham
source share