Thank you and after facing so much mysterious(at least to me) errors,
I failed to install it through pip(I have no idea why)
so I tried to get it from compiling the source code, and it failed as well.
I started over and install python through the repository rather than source 
code,
and I compile the mod_wsgi myself using the python I've installed, get it 
done in a few minutes.lol
 
Now I am dealing with another mysterious problem. ˊ___>ˋ
seems endless...

ANi於 2019年1月16日星期三 UTC+8下午12時04分23秒寫道:
>
> 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/879ce142-1dc5-4d81-ad64-286684280d49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to