Could not import settings 'myproject.settings' (Is it on sys.path?): No module named pinax

后端 未结 7 1517
天命终不由人
天命终不由人 2020-12-08 23:47

I\'m trying to get pinax working on WebFaction and having so many issues...

[Sun Feb 19 20:01:20 2012] [error] [client 127.0.0.1] mod_wsgi (pid=22796): Excep         


        
7条回答
  •  醉话见心
    2020-12-09 00:17

    According to this https://docs.djangoproject.com/en/1.5/howto/deployment/wsgi/modwsgi/#using-a-virtualenv just add path to your site package and python site-packages directory in Apache config or your site config (outside VirtualHost directive)

    WSGIPythonPath /path/to/mysite.com:/path/to/your/venv/lib/python2.X/site-packages

    For me, it was:

    WSGIPythonPath /var/www/djtest:/usr/local/lib/python2.7/site-packages

提交回复
热议问题