Tuesday, November 28, 2017

Re: FileField - not stored to disk when using mod_wsgi?


I suspect this might be due to permissions, because on linux, /tmp is owned by root and the apache service runs as user apache.

I agree that this has a certain smell of permissions, but I have at least tried to rule that out. In particular I have:

  1. I have created the directory /tmp/storage manually beforehand - and applied "chmod a+rwx /tmp/storage"
  2. When I intentionally limit the permissions so that user 'apache' can not write in this directory I immediately get a "OSError . permssion denied" when uploading files.
  3. I can not see anything in the apache error_log.

Can you confirm that you're using mod_wsgi_py3 for python3 and not regular mod_wsgi, which is for python2 only.


Ehhh - I am using Python2.7 and can confirm that I am using regular mod_wsgi.


--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALKD1M-VZpa6LKB30xSgybXT9xdx2Q3gGmXPiz1VYT-xLYMg4g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment