[PYTHON] Run django applications on Windows + Apache + mod_wsgi + services.

Note that sometimes it didn't work when I ran the django application as a service in an environment of Windows (10 64bit) + Apache (2.4) + Python 3.5.2 + mod_wsgi (4.5.7).

If it works

Run httpd directly from the console

If it doesn't work

Run httpd as a service

Fatal Python error: Py_Initialize: unable to load the file system codec
ImportError: No module named 'encodings'

There is something like

What i did

Set the environment variable PYTHONPATH (for all users). c:\python3\Lib Or something like that.

Recommended Posts

Run django applications on Windows + Apache + mod_wsgi + services.
Django + Apache with mod_wsgi on Windows Server 2016
Run Django on PythonAnywhere
How to embed mod_wsgi into Apache on Python Windows
Apache + Django + Shibboleth on Windows Server 2016 Related Articles Summary
Publish your Django app on Amazon Linux + Apache + mod_wsgi
How to run Django on IIS on a Windows server
Run Jupyter on Ubuntu on Windows
Run Openpose on Python (Windows)
Django environment development on Windows 10
Django --Apache mod_wsgi virtualhost deployment
Run Jupyter Notebook on windows
Run Tensorflow natively supported on windows
Run SwitchBot on Windows 10 with Bleak
Run python3 Django1.9 with mod_wsgi (deploy)
Run XGBoost on Bash on Ubuntu on Windows
Update applications running on Django 1.7 to Django 1.8
[Note] Run Django on Amazon Linux 2
Migrate Django applications running on Python 2.7 to Python 3.5
Run Radeon GPU on Windows on QEMU / KVM
Two things I was addicted to building Django + Apache + Nginx on Windows
Run servo with Python on ESP32 (Windows)
Django / Apache / mod_wsgi: No module named importlib
CentOS8 + Apache2.4 + pyenv + mod_wsgi + Django project deployment
CentOS 6.4 with Python 2.7.3 with Apache with mod_wsgi and Django
Run py.test on Windows Anaconda and MinGW
Run matplotlib on a Windows Docker container
Install and run Python3.5 + NumPy + SciPy on Windows 10
Put MicroPython on Windows to run ESP32 on Python
Run yolov4 "for the time being" on windows
Let's integrate Django and apache (httpd) on Mac! !!
Run Python on Apache to view InfluxDB data
Python on Windows
Run the flask app on Cloud9 and Apache Httpd
Run Kali Linux on Windows with GUI (without VirtualBox)
Run Tensorflow from Jupyter Notebook on Bash on Ubuntu on Windows
Install Apache 2.4 on Ubuntu 19.10 Eoan Ermine and run CGI