Browse Source

[fix] py: restore `application` for uWSGI (#5040)

Was removed on https://github.com/searxng/searxng/pull/5032
Ivan Gabaldon 3 days ago
parent
commit
b01d32d69d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      searx/webapp.py

+ 4 - 0
searx/webapp.py

@@ -1447,6 +1447,10 @@ app.wsgi_app = WhiteNoise(
 )
 
 patch_application(app)
+
+# remove when we drop support for uwsgi
+application = app
+
 init()
 
 if __name__ == "__main__":