Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Pretty interesting. What does your uwsgi line look like? Mine keeps failing with "ImportError: No module named zmusic.login". I'm running:

uwsgi --socket /tmp/uwsgi-zmusic.sock --file /home/user/zmusic-ng/backend/zmusic -H /home/user/zmusic-ng/venv --callable app --processes 4



What you want is zmusic:app with the -w switch.

    -w zmusic:app --socket /tmp/uwsgi-zmusic.sock --chmod-socket=660
Using --chdir to change to the backend/ directory may be useful as well.

I've just updated the README with these instructions.

I've also added a section on using uwsgi in standalone mode, as the built-in debugging server can't handle concurrent requests.


Thanks, that seemed to do the trick!


Try adding a --pythonpath or --chdir that points to the project directory in addition to the -H pointing to the venv.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: