def app(): object_config = type('Config', (TestConfig, CustomConfig), dict()) app = create_app(debug=True, local=True, object_config=object_config) # app = create_app(debug=True, local=True, use_profiler=False) # app.config['TESTING'] = True # app.config['WTF_CSRF_ENABLED'] = False # app.config['PRESERVE_CONTEXT_ON_EXCEPTION'] = False app.config['LIVESERVER_PORT'] = 8443 return app
# !/usr/bin/env python # -*- coding: utf-8 -*- # # Filename: app.py # Project: uwsgi_conf_files # Author: Brian Cherinka # Created: Tuesday, 3rd December 2019 9:47:55 pm # License: BSD 3-clause "New" or "Revised" License # Copyright (c) 2019 Brian Cherinka # Last Modified: Tuesday, 3rd December 2019 9:48:59 pm # Modified By: Brian Cherinka from __future__ import print_function, division, absolute_import from marvin.web import create_app app = create_app() if __name__ == "__main__": app.run()
def app(): object_config = type('Config', (TestConfig, CustomConfig), dict()) app = create_app(debug=True, local=True, object_config=object_config) limiter.enabled = False return app
def create_app(self): app = create_app(debug=True, local=True, use_profiler=False) app.config['TESTING'] = True app.config['WTF_CSRF_ENABLED'] = False app.config['PRESERVE_CONTEXT_ON_EXCEPTION'] = False return app