Hey guys.
I am trying to deploy my Django project on CentOS 7 with Apache.
and I got an error of  *ImportError: No module named django.core.wsgi*
I think it is because the Apache did not use the python version inside the 
virtualenv
However I dont know where the problem is.

this is my httpd.conf 
WSGIProcessGroup project
WSGIDaemonProcess project python-path=/var/www/html/project:/var/www/html/
inv/Lib/python3.7/site-packages
WSGIPythonPath /var/www/html/project:/var/www/html/inv/Lib/python3.7/site-
packages

Alias /static "/var/www/html/project/static-files"
<Directory "/var/www/html/project/static-files">
        Require all granted
</Directory>


<Directory "/var/www/html/project/project">
<Files wsgi.py>
        Require all granted
</Files>

I install wsgi_mod by *yum install mod_wsgi*
[mpm_prefork:notice] [pid 25884] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.
2k-fips mod_fcgid/2.3.9 mod_wsgi/3.4 Python/2.7.5 configured -- resuming 
normal operations



Thank you in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/bee8d91f-518c-434b-9103-ff126a13d9a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to