Hacker News new | ask | show | jobs
by bad_user 5949 days ago
Basically in the WSGI file (which is just python code) you need to insert the virtual-env site packages in sys.path, with something like this ...

  virtenvdir = '/path/to/virtual-env/lib/python2.5/site-packages/'

  import sys
  if virtenvdir not in sys.path:
      sys.path.insert(0, virtenvdir)