ImportError: No module named django.core.handlers.wsgi in install django mod_wsgi config on apache

前端 未结 10 951
我寻月下人不归
我寻月下人不归 2021-02-06 22:34

I tried to install django to work with apache and mod_wsgi but get this error:

ImportError: No module named django.core.handlers.wsgi,

I\'v rea

10条回答
  •  伪装坚强ぢ
    2021-02-06 23:23

    It would be a better idea if you remove django from your old python library..

    [root@lts5srv1]# rm -rf /root/epd-5.1.0/lib/python2.5/site-packages/django
    

    ..and reinstall it inside the 'site-packages' folder of the current python you are using:

    [root@lts5srv1 Django-1.4.1]# /usr/local/bin/python2.6 setup.py install
    

    That's what i did and i don't get that error anymore!

提交回复
热议问题