diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2022-01-26 23:02:45 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2022-01-27 08:27:41 +0100 |
commit | bdc28e335356debfd0e780d891ad6adcb66c9d0f (patch) | |
tree | 5ea63441a112ee4ea1a76e23ed926286238c9af7 | |
parent | 2c6bd2adf61869f2eec800332bceabccb67ab1b7 (diff) | |
download | searxng-bdc28e335356debfd0e780d891ad6adcb66c9d0f.tar.gz searxng-bdc28e335356debfd0e780d891ad6adcb66c9d0f.zip |
[fix] docs - don't add plugins twice
The PluginStore is already initalized when the application is initalized
searx.plugins.initialize(application)
BTW: remove unneeded Flask import
Closes: https://github.com/searxng/searxng/issues/828
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
-rw-r--r-- | docs/conf.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/conf.py b/docs/conf.py index ad7152a2b..2f58bdb12 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -3,7 +3,6 @@ import sys, os from pallets_sphinx_themes import ProjectLink -from flask import Flask from searx import get_setting from searx.version import VERSION_STRING, GIT_URL, GIT_BRANCH @@ -42,12 +41,12 @@ import searx.engines import searx.plugins import searx.webutils -# bypass a creepy check of the secret_key in searx.webapp +# import searx.webapp is needed to init the engines & plugins, to init a +# (empty) secret_key is needed. searx.settings['server']['secret_key'] = '' -from searx.webapp import application +import searx.webapp searx.engines.load_engines(searx.settings['engines']) -searx.plugins.initialize(application) jinja_contexts = { 'searx': { |