Django提取错误在/处

2024-09-30 00:37:26 发布

您现在位置:Python中文网/ 问答频道 /正文

我是全新的网络应用开发。开始申请后,我对django有个问题。我得到以下错误:

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: '/usr/local/pylons'

The Python egg cache directory is currently set to:

  /usr/local/pylons/python-eggs

在回答了其他一些问题后,我补充说:

os.environ['PYTHON_EGG_CACHE'] = '/usr/local/pylons/python-eggs'

到我的网站wsgi文件。还是一样的错误。我是apache新手,不知道如何“向apache用户授予权限”。我该怎么做?我在OSX山狮上。你知道吗


Tags: thetodjangocacheeggusrapachelocal
1条回答
网友
1楼 · 发布于 2024-09-30 00:37:26

看起来apache正在为另一个网站提供服务。尝试使用python manage.py runserver启动django开发服务器,然后将浏览器指向localhost:8000,这是django站点应该位于开发服务器上的位置。你知道吗

相关问题 更多 >

    热门问题