示例#1
0
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
示例#2
0
# !/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()
示例#3
0
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
示例#4
0
 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