Advertisement
Guest User

Untitled

a guest
Jun 14th, 2022
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1.  
  2. # some of the code.
  3.  
  4. from flask_redmail import RedMail
  5. app = Flask(__name__)
  6. email = RedMail()
  7. from app.config import Config
  8. def create_app(config_class=Config):
  9.     app.config.from_object(config_class)
  10.     email.init_app(app)
  11.     from app.mail.routes import mail
  12.     app.register_blueprint(mail)
  13.     return app
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement