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

后端 未结 7 1487
天命终不由人
天命终不由人 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:23

    There were 2 issues,

    1. The virtualenv should be loaded in ~/apache2/bin/start with these lines,

      WORKON_HOME=/home/pawesome/envs/pinax072/ . $WORKON_HOME/bin/activate

    2. You should be using the wsgi file provided by pinax and not the one our installer provides as pinax has some custom path code that is needed,

      #WSGIScriptAlias / /home/pawesome/webapps/qtsocial/myproject.wsgi WSGIScriptAlias / /home/pawesome/webapps/qtsocial/myproject/deploy/pinax.wsgi

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