I use below code to authenticate in SharePoint in my view:
import suds import logging logging.basicConfig(level=logging.INFO) logging.getLogger('suds.client').setLevel(logging.DEBUG) from suds.client import Client url = 'http://portal:8080/rashno/_vti_bin/lists.asmx?WSDL' from suds.transport.https import WindowsHttpAuthenticated ntlm = WindowsHttpAuthenticated(username='***', password='***') client = Client(url, transport=ntlm)
But i got this error:
<urlopen error [Errno -3] Temporary failure in name resolution>
but when do this with python shell , it authenticate me in sharepoint and after that i can use other sharepoint service with view or shell. can any one tell me whats the problem?
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4425ae16-2624-40ae-aac3-bf687b0f0d1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment