Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 25 lines (18 sloc) 0.65 kb
#!/usr/bin/env python
"""Google App Engine uses this file to run your Flask application."""
import os
from wsgiref.handlers import CGIHandler
from utils import adjust_sys_path
adjust_sys_path()
from app import create_app
from werkzeug_debugger_appengine import get_debugged_app
def main():
app = create_app()
# If we're on the local server, let's enable Flask debugging.
# For more information: http://goo.gl/RNofH
if 'SERVER_SOFTWARE' in os.environ and os.environ['SERVER_SOFTWARE'].startswith('Dev'):
app.debug = True
app = get_debugged_app(app)
CGIHandler().run(app)
if __name__ == '__main__':
main()
Jump to Line
Something went wrong with that request. Please try again.