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?
import site
site.addsitedir('/path/to/virtenv/lib/python2.7/site-packages')
#!/usr/bin/env python
import os
import site
import sys
sys.dont_write_bytecode = True # don't write .pyc files
sys.path.append(os.path.dirname(__file__))
site.addsitedir('/path/to/virtenv/lib/python2.7/site-packages')
os.environ['DJANGO_SETTINGS_MODULE'] = 'demo.settings'
if __name__ == '__main__': # command line
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
else: # wsgi
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1407345736984.18318%40greenberg.pro.
For more options, visit https://groups.google.com/d/optout.
Collin,
I will be running it with p3.4.
How is the performance of it?
Bill,
I see. However, I wanted to try uwsgi instead of mod_wsgi. I will be using nginx, not Apache.
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 receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFO84S6UhP0OKPSNDCFaLfqf_u_Lgc9ANpEq9cqGuhdpY%2BvEzQ%40mail.gmail.com.