Skip to content

documentation update #924

@jochengcd

Description

@jochengcd

Under
https://modwsgi.readthedocs.io/en/develop/user-guides/virtual-environments.html#daemon-mode-multiple-applications
https://modwsgi.readthedocs.io/en/develop/user-guides/virtual-environments.html

the code following
If the Python virtual environment is created using virtualenv or virtualenvwrapper, the WSGI script for each application should be modified to include code of the following form:

is for python2
python_home = '/usr/local/envs/myapp1'

activate_this = python_home + '/bin/activate_this.py'
execfile(activate_this, dict(file=activate_this))

for python3 it should be
python_home = '/usr/local/envs/myapp1'

activate_this = python_home + '/bin/activate_this.py'
exec(open(activate_this).read())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions