def create_app(self): app = create_app() app.config['TESTING'] = True self.twill = Twill(app, port=3000) return app
# UWSGI configuration #import uwsgi # Apache mod_wsgi import sys import os sys.stdin = sys.stdout BASE_DIR = os.path.join(os.path.dirname(__file__)) sys.path.append(BASE_DIR) #import production_settings from mongoAdmin import create_app #application = create_app(production_settings) application = create_app() if __name__ == '__main__': application.run()