How to setup up PYTHON_EGG_CACHE environment variable on Mac?

前端 未结 2 730
失恋的感觉
失恋的感觉 2021-01-16 07:53

I am trying to setup Django to use MySQL. I am getting the following error when I type in localhost/mysite

ExtractionError at /
Can\'t extract f         


        
2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-16 08:09

    Also might try to set the egg cache directory in the wsgi script,

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

    as can be found from here http://code.google.com/p/modwsgi/wiki/ApplicationIssues

提交回复
热议问题