Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # some of the code.
- from flask_redmail import RedMail
- app = Flask(__name__)
- email = RedMail()
- from app.config import Config
- def create_app(config_class=Config):
- app.config.from_object(config_class)
- email.init_app(app)
- from app.mail.routes import mail
- app.register_blueprint(mail)
- return app
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement