Django, permission error saving on disk, why?

179 views
Skip to first unread message

miguel vfx

unread,
Jul 4, 2017, 7:33:49 AM7/4/17
to Django users
Hello,I'm getting a Permissions Error [Errno 13] Permission Denied when a workbook on disk using openpyxl:
wb.save(path)

No file is uploaded. It's a request then the file is generated and delivered (downloaded), and that part works fine. What I'm trying to do is save a copy of that file on disk.


So far I have rw to both group and others. Same error.


Has anyone tried this before? Is this a Django issue or Linux/Permission? Thank you for the help.

Antonis Christofides

unread,
Jul 4, 2017, 7:39:21 AM7/4/17
to django...@googlegroups.com

Is it possible to show full traceback and error message?

Antonis Christofides
http://djangodeployment.com
--
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...@googlegroups.com.
To post to this group, send email to django...@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/1d973104-6c3f-4b67-865a-389ab58f39a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

"Александр Христюхин (roboslone)"

unread,
Jul 4, 2017, 8:30:59 AM7/4/17
to django...@googlegroups.com
Looks like Linux permission issue. Are you sure user that runs Django is allowed to write anything to given directory?

Reply all
Reply to author
Forward
0 new messages