Skip to content
Find file
49abefd Mar 31, 2011
executable file 25 lines (18 sloc) 650 Bytes
#!/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
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:
if 'SERVER_SOFTWARE' in os.environ and os.environ['SERVER_SOFTWARE'].startswith('Dev'):
app.debug = True
app = get_debugged_app(app)
if __name__ == '__main__':
Something went wrong with that request. Please try again.