<s> from flask import Flask <EOL> from mailshake import ToConsoleMailer , SMTPMailer <EOL> from sqlalchemy_wrapper import SQLAlchemy <EOL> import settings <EOL> app = Flask ( __name__ ) <EOL> app . config . from_object ( settings ) <EOL> db = SQLAlchemy ( settings . SQLALCHEMY_URI , app ) <EOL> if settings . DEBUG : <EOL> mailer = ToConsoleMailer ( ) <EOL> else : <EOL> mailer = SMTPMailer ( ** settings . MAILER_SETTINGS ) </s>
