|
|
@ -96,7 +96,10 @@ app = create_app() |
|
|
|
app.wsgi_app = ProxyFix(app.wsgi_app, num_proxies=1) |
|
|
|
limiter = Limiter(app, key_func=get_remote_address) |
|
|
|
|
|
|
|
log.info("Bound reverse proxy wsgi app") |
|
|
|
if __name__ != '__main__': |
|
|
|
gunicorn_logger = logging.getLogger('gunicorn.error') |
|
|
|
app.logger.handlers = gunicorn_logger.handlers |
|
|
|
app.logger.setLevel(gunicorn_logger.level) |
|
|
|
|
|
|
|
|
|
|
|
def flash_form_errors(form): |
|
|
|