from flask_talisman import Talisman
from flask_main import create_app
app = create_app()
Talisman(app)
if __name__ == "main":
app.run()
It still does not work. Any request coming to https:// returns SSL_ERROR_RX_RECORD_TOO_LONG. I've tried both commands to start the app: flask run and python app.py, nothing changes.
Per this issue #66, doing this in create_app won't work.
from flask import Flask
from flask_talisman import Talisman
from flask_main.configuration import Configuration
talisman = Talisman()
def create_app():
app = Flask(__name__)
app.config.from_object(Configuration)
talisman.init_app(app)
Is there any way to make flask-talisman work with application factory pattern?
I tried the following in my
app.py
:It still does not work. Any request coming to https:// returns
SSL_ERROR_RX_RECORD_TOO_LONG
. I've tried both commands to start the app:flask run
andpython app.py
, nothing changes.Per this issue #66, doing this in
create_app
won't work.Is there any way to make flask-talisman work with application factory pattern?