Я пытаюсь настроить Django для использования MySQL.Я получаю следующую ошибку, когда набираю localhost/mysite
ExtractionError at /
Can't extract file(s) to egg cache
The following error occurred while trying to extract file(s) to the Python egg
cache:
[Errno 13] Permission denied: '/Library/WebServer/.python-eggs'
The Python egg cache directory is currently set to:
/Library/WebServer/.python-eggs
Perhaps your account does not have write access to this directory? You can
change the cache directory by setting the PYTHON_EGG_CACHE environment
variable to point to an accessible directory.
Из сообщения об ошибке я знаю, что мне нужно изменить переменную среды PYTHON_EGG_CACHE
, чтобы она указала на каталог, к которому Apache может получить доступ.Я попытался добавить следующее к httpd.conf
SetEnv PYTHON_EGG_CACHE /var/www
<Directory /var/www>
Order deny,allow
Allow from all
</Directory>
, а также просто SetEnv PYTHON_EGG_CACHE /var/www
к bashrc
, но, похоже, ничего не решило проблему.Любые предложения о том, что я могу делать не так?
Примечание: www
это папка, которую я создал