Hi, when I init uwsgi, I find a problem "importerror no module named django". 


I install postorius following installation in 
http://postorius.readthedocs.io/en/latest/setup.html, and visit 
http://192.168.1.96:8001 it workes well after run: $ sudo python manage.py 
runserver 0.0.0.0:8001.
Do not know what is about development in the page: 
http://postorius.readthedocs.io/en/latest/development.html, so I pass it.
Then go to deployment in 
http://postorius.readthedocs.io/en/latest/deployment.html.



I creat file /home/lists/uwsgi.ini and put in it:
---
[uwsgi]
chdir = /home/lists/postorius/sample_project
#virtualenv  = /srv/django/mailman/env
#socket  = /run/uwsgi/mailman.sock

wsgi-file = wsgi.py
master = true
process = 4
threads = 2
vacuum = true
plugin = python2

uid = http
gid = http

---


then run:
$ uwsgi --ini /home/lists/uwsgi.ini


it gives the error "importerror, no module named django".


I think it is the problem of the below 2 line:
#virtualenv  = /srv/django/mailman/env
#socket  = /run/uwsgi/mailman.sock

but docs do not mention how to set about this 2 line, so I just comment out the 
2 line.


I also tried with mailman-suite, also have the same problem.


can you help with me? 
will you think to write a installing instruction with command to follow for 
people totally don't know django in future?


Thank you.
_______________________________________________
Mailman-Developers mailing list
Mailman-Developers@python.org
https://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9

Reply via email to