На самом деле я успешно установил mod_wsgi
в Windows, но когда я добавляю некоторые настройки в файл httpd.conf
на apache, возникает ошибка.
LoadFile "c: / programdata / anaconda3 / python37.dll "LoadModule wsgi_module" c: /programdata/anaconda3/lib/site-packages/mod_wsgi/server/mod_wsgi.cp37-win_amd64.pyd "WSGIPythonHome" c: / programdata / anaconda3 "
* 1008 в имой файл httpd.conf:
LoadModule wsgi_module "c:/programdata/anaconda3/lib/site-packages/mod_wsgi/server/mod_wsgi.cp37-win_amd64.pyd"
WSGIScriptAlias / "C:/Users/MyUser/Documents/MyFirstDjangoProj/student_management_system/student_management_sys/student_management_sys/wsgi.py"
WSGIPythonHome "c:/programdata/anaconda3"
WSGIPythonPath "C:/Users/MyUser/Documents/MyFirstDjangoProj/student_management_system/student_management_sys"
<Directory C:/Users/MyUser/Documents/MyFirstDjangoProj/student_management_system/student_management_sys/student_management_app/media>
Require all granted
</Directory>
<Directory C:/Users/MyUser/Documents/MyFirstDjangoProj/student_management_system/student_management_sys/student_management_app/static>
Require all granted
</Directory>
<Directory "C:/Users/MyUser/Documents/MyFirstDjangoProj/student_management_system/student_management_sys">
<Files wsgi.py>
Require all granted
</Files>
</Directory>