ImportError: No module named mysite.settings (Django)

前端 未结 5 764
清酒与你
清酒与你 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:36

    Also, if you are using Visual Studio, check that your app properties for Django match the settings module that you are expecting. By default, it is set to $(MSBuildProjectName).settings, which was a problem for me since my project name and app name were not the same.

    You can find this setting by right clicking on your app in the Solution Explorer and clicking on "Properties" and then the Django tab on the left.

提交回复
热议问题