ImportError: No module named mysite.settings (Django)

前端 未结 5 763
清酒与你
清酒与你 2020-12-31 06:37

I have installed Django and mod_wsgi-express on an ubuntu 15.10. Basically (notice I did not do this as root):

pip install Django
pip instal         


        
5条回答
  •  既然无缘
    2020-12-31 07:15

    The problem was in the include path:

    import sys
    #Wrong!
    #sys.path.append("/home/user/mysite/mysite")
    
    #Correct
    sys.path.append("/home/user/mysite")
    

提交回复
热议问题