|
@@ -104,6 +104,9 @@ app.jinja_env.trim_blocks = True
|
104
|
104
|
app.jinja_env.lstrip_blocks = True
|
105
|
105
|
app.secret_key = settings['server']['secret_key']
|
106
|
106
|
|
|
107
|
+if not searx_debug or os.environ.get("WERKZEUG_RUN_MAIN") == "true":
|
|
108
|
+ initialize_engines(settings['engines'])
|
|
109
|
+
|
107
|
110
|
babel = Babel(app)
|
108
|
111
|
|
109
|
112
|
rtl_locales = ['ar', 'arc', 'bcc', 'bqi', 'ckb', 'dv', 'fa', 'glk', 'he',
|
|
@@ -769,9 +772,6 @@ def page_not_found(e):
|
769
|
772
|
|
770
|
773
|
|
771
|
774
|
def run():
|
772
|
|
- if not searx_debug or os.environ.get("WERKZEUG_RUN_MAIN") == "true":
|
773
|
|
- initialize_engines(settings['engines'])
|
774
|
|
-
|
775
|
775
|
app.run(
|
776
|
776
|
debug=searx_debug,
|
777
|
777
|
use_debugger=searx_debug,
|