We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b6a7803 + 7603382 commit 944a29cCopy full SHA for 944a29c
1 file changed
app/__init__.py
@@ -22,9 +22,6 @@
22
index = search_client.init_index(Config.INDEX_NAME)
23
24
app = Flask(__name__, static_folder='app/static')
25
-app.config.from_object(Config)
26
-app.url_map.strict_slashes = False
27
-
28
if environ['FLASK_ENV'] != 'development':
29
app = ProxyFix(app, x_for=1, x_host=1)
30
limiter = Limiter(
@@ -33,6 +30,9 @@
33
default_limits=["200 per day", "50 per hour"]
34
31
)
35
32
+app.config.from_object(Config)
+app.url_map.strict_slashes = False
+
36
db.init_app(app)
37
migrate.init_app(app, db)
38
0 commit comments