title: How to obtain values of parameters of get request in flask?
body: <p>The answer that I found on the web is to use <code>request.args.get</code>. However, I cannot manage it to work. I have the following simple example:</p>
  
  <pre><code>from flask import Flask
  app = Flask(__name__)
  
  @app.route("/hello")
  def hello():
      print request.args['x']
      return "Hello World!"
  
  if __name__ == "__main__":
      app.run()
  </code></pre>
  
  <p>I go to the <code>127.0.0.1:5000/hello?x=2</code> in my browser and as a result I get:</p>
  
  <pre><code>Internal Server Error
  
  The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
  </code></pre>
  
  <p>What am I doing wrong?</p>