Unable to display content on homepage ; Flask app on Google App Engine
<p>I am trying to deploy a flask app on GAE.<br><br>
All dependencies like Flask, jinja2 etc are in the same directory<br><br></p>

<p>When GAE launcher deploys the app locally, it gets deployed but <strong>nothing gets displayed on the home url once the local server is up and running</strong> even though the main.py returns some text for the home url</p>

<p>Following are my files:<br><br>
<strong>app.yaml</strong></p>

<pre><code>application: texsumm
version: 1
runtime: python27
api_version: 1
threadsafe: true

handlers:
- url: .*
   script: main.app
</code></pre>

<p><strong>main.py</strong></p>

<pre><code>from flask import Flask, render_template, request
app = Flask(__name__)

@app.route("/")
def template_test():
     return "Hello"

if __name__ == "__main__":
     app.run()
</code></pre>

<p>What can be the issue ?</p>

<p>Flask already handles the:</p>

<pre><code>if __name__ == "__main__":
     app.run()
</code></pre>

<p>so delete that.  Read the <code>run(host=None, port=None, debug=None, **options)</code> section at:</p>

<p><a href="http://flask.pocoo.org/docs/0.11/api/" rel="nofollow">http://flask.pocoo.org/docs/0.11/api/</a></p>

python google-app-engine web-applications flask