Tyl*_*tee 5 python django ldap
所以关于ldap和Django的所有教程都是从开头说的
import ldap
from django_auth_ldap.config import LDAPSearch
Run Code Online (Sandbox Code Playgroud)
但无论我得到什么错误:
ImportError: Could not import settings 'reportgenerator.settings' (Is it on sys.path?
Is there an import error in the settings file?): No module named
django_auth_ldap.config
Run Code Online (Sandbox Code Playgroud)
我错过了什么吗?我安装了python-ldap.
通过在命令行上运行以下命令解决了这个问题:
pip install django-auth-ldap
Run Code Online (Sandbox Code Playgroud)