Re: Connect django project with sharepoint 2013

2014-12-09 Thread Collin Anderson
Hi, You may have better luck using the ip address directly instead of "portal". Collin On Saturday, December 6, 2014 11:46:23 PM UTC-5, Hossein Rashnoo wrote: > > I need this connection for adding list items and save my users data on > sharepoint database. I ran it in command line and when i

Re: Connect django project with sharepoint 2013

2014-12-07 Thread Mario Gudelj
Well your python code is trying access that url so the url must work On 07/12/2014 4:47 pm, "Hossein Rashnoo" wrote: > I can access to http://portal:8080/ in my browser when i set our office > proxy and port. And my linux server that i run django on it, is local. Do i > need

Re: Connect django project with sharepoint 2013

2014-12-06 Thread Hossein Rashnoo
I can access to http://portal:8080/ in my browser when i set our office proxy and port. And my linux server that i run django on it, is local. Do i need to set proxy to access sharepoint? On Sunday, December 7, 2014 8:30:18 AM UTC+3:30, somecallitblues wrote: > > Urllib2 can't open the url

Re: Connect django project with sharepoint 2013

2014-12-06 Thread Mario Gudelj
Urllib2 can't open the url http:// portal:8080. I assume that you can't visit that url from the browser either On 07/12/2014 3:46 pm, "Hossein Rashnoo" wrote: > I need this connection for adding list items and save my users data on > sharepoint database. I ran it in command

Re: Connect django project with sharepoint 2013

2014-12-06 Thread Hossein Rashnoo
I need this connection for adding list items and save my users data on sharepoint database. I ran it in command line and when i write something like """ print site.lists[0] """ this error appear : File "", line 1, in File "/usr/lib/python2.6/site-packages/sharepoint/lists/__init__.py",

Re: Connect django project with sharepoint 2013

2014-12-06 Thread François Schiettecatte
Ok, but I am not sure what this has to do with Django ? Maybe you should ask on a SharePoint mailing list ? And did you try running the code in a script on the command line ? François > On Dec 6, 2014, at 7:10 AM, Hossein Rashnoo wrote: > > I need to connect my project to

Connect django project with sharepoint 2013

2014-12-06 Thread Hossein Rashnoo
I need to connect my project to sharepoint. So i installed "sharepoint 0.4.1" package and then use this code in my view : from sharepoint import SharePointSite, basic_auth_opener def userloginres(request): server_url = "http://portal:8080/; site_url = server_url + "rashno/" opener =