mod_wsgi icon indicating copy to clipboard operation
mod_wsgi copied to clipboard

[wsgi:error] [pid 1956743] [remoteserver -ip] ImportError: No module named django.core.wsgi

Open Abhinavwani3141 opened this issue 2 years ago • 1 comments

website is hosted on ec2 apache web server after checking error log this error is shown [wsgi:error] [pid 1956743] [remoteserver -ip] ImportError: No module named django.core.wsgi but django is already intalled

Abhinavwani3141 avatar Nov 21 '23 05:11 Abhinavwani3141

Impossible to give any advice without seeing what mod_wsgi configuration you used and details about where Django was installed to, plus where your project code is. If you are using a Python virtual environment to install Django into, you need to configure mod_wsgi to tell it where the Python virtual environment is. The Django documentation provides example of how to do this for mod_wsgi so make sure you are interpreting the Django documentation correctly.

GrahamDumpleton avatar Nov 21 '23 06:11 GrahamDumpleton