Re: nginx and django without virtualenv

2014-08-06 Thread Bill Freeman
Right. I thought of that later. But virtualenv or not is still just a different sys.path, and you still have to have your stuff installed in the correct python. On Wed, Aug 6, 2014 at 1:53 PM, Bill Freeman wrote: > Though if he's moving to nginx, thus not mod_wsgi, I guess it doesn't > matter

Re: nginx and django without virtualenv

2014-08-06 Thread Bill Freeman
Though if he's moving to nginx, thus not mod_wsgi, I guess it doesn't matter what mod_wsgi is linked against. On Wed, Aug 6, 2014 at 1:49 PM, Collin Anderson wrote: > Actually, that's a good point. I always use the same python version that's > linked with mod_wsgi. I don't use a virtualenv to u

RE: nginx and django without virtualenv

2014-08-06 Thread Paul Greenberg
-7343 Web: http://www.greenberg.pro/ Twitter: @nymetrolaw From: django-users@googlegroups.com on behalf of Bill Freeman Sent: Wednesday, August 06, 2014 1:47 PM To: django-users Subject: Re: nginx and django without virtualenv Performance *should* be identical

Re: nginx and django without virtualenv

2014-08-06 Thread Collin Anderson
Actually, that's a good point. I always use the same python version that's linked with mod_wsgi. I don't use a virtualenv to use a different python version. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

RE: nginx and django without virtualenv

2014-08-06 Thread Paul Greenberg
://www.greenberg.pro/ Twitter: @nymetrolaw From: django-users@googlegroups.com on behalf of Collin Anderson Sent: Wednesday, August 06, 2014 1:38 PM To: django-users@googlegroups.com Subject: Re: nginx and django without virtualenv Personally, in my `manage.py and `wsgi.py, I

Re: nginx and django without virtualenv

2014-08-06 Thread Bill Freeman
Performance *should* be identical. All that virtualenv does (from the point of view of the executing python program) is to change how sys.prefix and sys.exec_prefix are set, and thus, how sys.path is calculated. But with a vanilla sys.path, you need to be sure that django, your other dependencies

Re: nginx and django without virtualenv

2014-08-06 Thread Collin Anderson
Personally, in my `manage.py and `wsgi.py, I have the line: import site site.addsitedir('/path/to/virtenv/lib/python2.7/site-packages') Actually, truthfully, I've merged wsgi.py and manage.py into one manage.py) #!/usr/bin/env python import os import site import sys sys.dont_write_bytecode = Tru

nginx and django without virtualenv

2014-08-06 Thread Paul Greenberg
All, I was running django with Apache and mod_wsgi for a while. Now, I am planning to run django without virtualenv. Although, it seems virtualenv might help. http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html Any pointers? Performance issues? Best Regards, Paul Gre