{{#supportPython2}} #!/usr/bin/env python {{/supportPython2}} {{^supportPython2}} #!/usr/bin/env python3 {{/supportPython2}} from {{packageName}}.server_impl import app, application, mail, celery, setup_app def main(): setup_app('{{appName}}', 'DevelopmentConfig') app.run(host=application.config.get("HOST", "localhost"), port=application.config.get("PORT", {{serverPort}})) if __name__ == '__main__': main()