This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Attila-Mihaly Balazs
Recipients Attila-Mihaly Balazs, couplewavylines, vinay.sajip
Date 2016-07-07.10:07:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1467886079.3.0.274026683836.issue21496@psf.upfronthosting.co.za>
In-reply-to
Content
Hello,

A scenario where this would be needed (and where you can't just "execute the script with the python from inside the pyvenv" to get it automatically activate) is when running under mod_wsgi. There sometimes it is needed to activate the virtualenv "on the fly" from inside the application.wsgi.

Just taking activate_this.py from virtualenv and dropping it into env/bin seems to work nicely, so perhaps that could become the official solution?
History
Date User Action Args
2016-07-07 10:07:59Attila-Mihaly Balazssetrecipients: + Attila-Mihaly Balazs, vinay.sajip, couplewavylines
2016-07-07 10:07:59Attila-Mihaly Balazssetmessageid: <1467886079.3.0.274026683836.issue21496@psf.upfronthosting.co.za>
2016-07-07 10:07:59Attila-Mihaly Balazslinkissue21496 messages
2016-07-07 10:07:59Attila-Mihaly Balazscreate