In the case where site.USER_SITE attribute is NOT present:
[Fri Aug 30 00:55:05.338223 2019] [wsgi:error] [pid 2447:tid 140424335841024
] NAME mod_wsgi
[Fri Aug 30 00:55:05.338242 2019] [wsgi:error] [pid 2447:tid 140424335841024
] FILE
Thanks for the feedback Graham.
Confused as to why the 'USER_SITE' attribute is present if I do not try to
set python-path. If I just remove the python-path setting from the config
file, this is what site.USER_SITE is set to:
site.USER_SITE = /var/www/.local/lib/python3.5/site-packages
The per user site-packages directory under $HOME is not used if you are using a
Python virtual environment. You should not be installing packages using 'pip
install --user' if using a virtual environment, they should be installed into
the virtual environment.
Further, under Apache the code