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

前端 未结 10 967
我寻月下人不归
我寻月下人不归 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:32

    This line is certainly wrong:

    sys.path.append('/usr/lib/python2.4/site-packages/django')
    

    Install Django with/for the version of Python that mod_wsgi was built against.

提交回复
热议问题