> Den 15. dec. 2017 kl. 22.18 skrev Alexander Joseph 
> <alexander.v.jos...@gmail.com>:
> 
> I'm still new to django but I'm building an app that allows users to 
> authenticate through Office365. I'm using this -  
> https://github.com/Lamelos/django-allauth-office365
> and I got users to be able to successfully sign in with office365 but I now 
> need users to be able to upload documents to the sharepoint online sites 
> within office365. I'm not entirely sure how to go about this. If someone else 
> has any idea or has done something like this before any advice is much 
> appreciated. Since the users are already authenticated with Office365 and, 
> assuming I put the correct permissions/scope in my settings file and 
> dev.microsoft app, I thought maybe I could just try to upload a file from the 
> model like a normal upload path 
> ('https://company.sharepoint.com//SiteName/Shared%20Documents/') but this 
> didn't work. It seemed to upload the file without throwing any exceptions but 
> the file wasn't actually in the directory on SharePoint

Your question doesn't really have anything to do with Django, but I've used 
https://pypi.python.org/pypi/sharepoint previously with some success to work 
with SharePoint sites. I don't think it supports file uploads directly, but you 
could use it as a starting point to explore the Sharepoint SOAP API. But maybe 
Office365 Sharepoint sites also offer a more modern REST API you could use 
instead.

Erik

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/EB0F3A4F-E224-4984-B054-6F40968BB7C6%40cederstrand.dk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to