Код: Выделить всё
PYTHONHOME = '/home/rickmanns/bar/bar/djenv'
PYTHONPATH = (not set)
program name = 'python3'
isolated = 0
environment = 1
user site = 1
safe_path = 0
import site = 1
is in build tree = 0
stdlib dir = '/home/rickmanns/bar/bar/djenv/lib/python3.11'
sys._base_executable = '/usr/bin/python3'
sys.base_prefix = '/home/rickmanns/bar/bar/djenv'
sys.base_exec_prefix = '/home/rickmanns/bar/bar/djenv'
sys.platlibdir = 'lib'
sys.executable = '/usr/bin/python3'
sys.prefix = '/home/rickmanns/bar/bar/djenv'
sys.exec_prefix = '/home/rickmanns/bar/bar/djenv'
sys.path = [
'/home/rickmanns/bar/bar/djenv/lib/python311.zip',
'/home/rickmanns/bar/bar/djenv/lib/python3.11',
'/home/rickmanns/bar/bar/djenv/lib/python3.11/lib-dynload',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Код: Выделить всё
Alias /static /home/rickmanns/bar/static
Require all granted
Require all granted
WSGIDaemonProcess bar python-path=/home/rickmanns/bar python-home=/home/rickmanns/bar/djenv
WSGIProcessGroup bar
WSGIScriptAlias / /home/rickmanns/bar/bar/wsgi.py
Спасибо. всем!
Подробнее здесь: https://stackoverflow.com/questions/786 ... -to-apache