Thanks.
I ever released PHP/Symfony project and it has same issue, the cache directory much be changed to have ownership of user apache and be writable. I believe for python/django, this is the same.
But when I use manage.py runserver, nothing happened, only in mod_wsgi, I got this issue. I guess, in mod_wsgi, the user should be apache also, while in "manage.py runserver" ,user is root, it can write to whereever.
Sorry, I am not a IT guy, so maybe these questions are pretty silly.
1. In apache mod_wsgi, who is the user, is that 'apache'? but when I tried to use chown -R apache:apache for the whole document root, I got 'user/group does not exist', so it may be someone else;
2. I tried to print out the name at '/usr/lib/python2.6/os.py in makedirs, line 157', the name parameter is only '.cache', this is kind of confusion, where is the directory going to be created?
3. I am not using daemon mode yet, if I change to daemon mode, will that solve the problem?
For your answer, point 1 and 2, how do I control the directory position, how can I move to /tmp?
Thanks for your kind help in advance.
Frank