def create_app(self): """ override the default config with the test config """ initializer.do_init(app, MODE_TEST) mail.init_app(app) return app
""" Goal: Implement the application entry point @authors: Andrei Sura <*****@*****.**> Ruchi Vivek Desai <*****@*****.**> Sanath Pasumarthy <*****@*****.**> """ from redidropper.main import app, db, mail from redidropper.startup import initializer # Configures routes, models app = initializer.do_init(app, db) mail.init_app(app) ssl_public_key_file = 'server.crt' ssl_private_key_file = 'server.key' def get_ssl_context(app): """ Get a SSL context in debug mode @see http://werkzeug.pocoo.org/docs/0.10/serving/#quickstart """ import os.path import ssl ssl_context = None if app.debug: