How to setup up PYTHON_EGG_CACHE environment variable on Mac?

前端 未结 2 666
失恋的感觉
失恋的感觉 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

    0 讨论(0)
  • 2021-01-16 08:12

    Based on your previous question, you're using WSGI. You want WSGIPythonEggs or the python-eggs option for WSGIDaemonProcess.

    0 讨论(0)
提交回复
热议问题