added automatic waitlist email sending
This commit is contained in:
@@ -2,6 +2,7 @@ from flask import Flask
|
||||
from app.config import Config
|
||||
from app.extensions import db, mail, limiter
|
||||
from werkzeug.middleware.proxy_fix import ProxyFix
|
||||
import logging
|
||||
|
||||
def create_app(config_class=Config):
|
||||
app = Flask(__name__)
|
||||
@@ -9,6 +10,10 @@ def create_app(config_class=Config):
|
||||
|
||||
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_proto=1)
|
||||
|
||||
gunicorn_logger = logging.getLogger("gunicorn.error")
|
||||
app.logger.handlers = gunicorn_logger.handlers
|
||||
app.logger.setLevel(gunicorn_logger.level)
|
||||
|
||||
# Initialize extensions
|
||||
db.init_app(app)
|
||||
mail.init_app(app)
|
||||
|
||||
Reference in New Issue
Block a user