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 = 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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/0bee8b3c-d291-42b4-b0a8-9e443cb22f0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to