ValueError: option error in Django / Python

安稳与你 提交于 2019-12-12 23:13:34

问题


I'm building a django website and trying to implement LDAP to it.

Whenever I call ldap.set_option(), I get this error:

ValueError: option error

Any idea why this is happening?

This is the document I'm following.

Thanks for looking into this and greatly appreciate your help!


回答1:


http://packages.python.org/django-auth-ldap/#auth-ldap-global-options

Is AUTH_LDAP_GLOBAL_OPTIONS defined and does it have items in it?

Perhaps it is not defined?



来源:https://stackoverflow.com/questions/11617147/valueerror-option-error-in-django-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!