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