Skip to content
Myr

Add info about working with VE and Python 3

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Python 3 does not have execfile function.

authored by Michael Klich · committed by David Lord · parent 1ac4156 · Browse files · 1 file+6 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:docs/deploying/mod_wsgi.rst+6 added
191 unmodified lines
192193 activate_this = '/path/to/env/bin/activate_this.py'194 execfile(activate_this, dict(__file__=activate_this))195196For Python 3 add the following lines to the top of your ``.wsgi`` file::197198 activate_this = '/path/to/env/bin/activate_this.py'199 with open(activate_this) as file_:200 exec(file_.read(), dict(__file__=activate_this))201202This sets up the load paths according to the settings of the virtual203environment. Keep in mind that the path has to be absolute.