title: In Python Flask, better way to manage decorators?
body: <p>I'm starting have this issue pop up in all my routes in Python Flask:</p>
  
  <pre><code>@defaults.app.route('/&lt;path:path&gt;')
  @forceUpdate
  @FlaskLogin.login_required
  @gzipped
  def serve_page(path):
      try:
          resp = flask.send_from_directory(defaults.APP_STATIC, path)
          return resp
      except Exception:
          return flask.render_template("index.html")
  </code></pre>
  
  <p>Is there a better way to do this?</p>
  
  <p>The <code>forceUpdate</code> decorator forces a redirect based upon a flag on a file system.</p>
  
  <p>Login requires the user to be logged in.</p>
  
  <p>And Gzip... gzips the response.</p>
  
  <p>I have about 20 routes so far and its getting ugly having all these combinations of decorators.</p>