所有关于ldap和Django的教程都是从
import ldap
from django_auth_ldap.config import LDAPSearch
但不管我犯了什么错误:
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
我遗漏了什么吗?我已经安装了python ldap。
通过在命令行上运行以下命令解决了此问题:
pip install django-auth-ldap
目前没有回答
相关问题 更多 >
编程相关推荐