Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings: Import LDAP settings in prod_settings_template.
Flávio Prado0c781311394b
diff --git a/tools/linter_lib/pyflakes.py b/tools/linter_lib/pyflakes.pyindex af87c9ec0ec..080425a98c7 100644--- a/tools/linter_lib/pyflakes.py+++ b/tools/linter_lib/pyflakes.py@@ -7,6 +7,8 @@ from zulint.linters import run_pyflakesdef check_pyflakes(files: List[str], options: argparse.Namespace) -> bool:suppress_patterns = [("scripts/lib/pythonrc.py", "imported but unused"),+ # LDAP imports are necessary for docker-zulip.+ ("zproject/prod_settings_template.py", "imported but unused"),# Our ipython startup pythonrc file intentionally imports *("scripts/lib/pythonrc.py", " import *' used; unable to detect undefined names"),(diff --git a/zproject/prod_settings_template.py b/zproject/prod_settings_template.pyindex bba0858475e..91db5f47088 100644--- a/zproject/prod_settings_template.py+++ b/zproject/prod_settings_template.py@@ -155,7 +155,7 @@ AUTHENTICATION_BACKENDS: Tuple[str, ...] = (## optionally using LDAP as an authentication mechanism.import ldap-from django_auth_ldap.config import LDAPSearch+from django_auth_ldap.config import GroupOfNamesType, LDAPGroupQuery, LDAPSearch## Connecting to the LDAP server.##