找不到模块错误:没有名为'listing.settings'的模块

时间:2021-10-09 19:39:24

Just starting out with Python and Django. I built this app that is basically a really simple real estate listing website. Everything is coded out and based on a tutorial I just went through, as far as I can tell everything matches. I've gotten this to work before so I'm a little confused as to what is going on. Here are two images of the error I'm getting and my file structure.

刚开始使用Python和Django。我建立了这个基本上是一个非常简单的房地产上市网站的应用程序。一切都是根据我刚刚经历过的教程编写的,据我所知,所有内容都匹配。我之前已经开始工作了,所以我对发生的事情感到有些困惑。这是我得到的错误和我的文件结构的两个图像。

找不到模块错误:没有名为'listing.settings'的模块

找不到模块错误:没有名为'listing.settings'的模块

1 个解决方案

#1


0  

You can remove the error by moving the items of listings(subfolder) to listings(parent folder).
This error is raised because Django is looking for settings.py inside the listings folder(parent folder).

您可以通过将列表项(子文件夹)移动到列表(父文件夹)来删除错误。引发此错误是因为Django正在列表文件夹(父文件夹)中查找settings.py。

#1


0  

You can remove the error by moving the items of listings(subfolder) to listings(parent folder).
This error is raised because Django is looking for settings.py inside the listings folder(parent folder).

您可以通过将列表项(子文件夹)移动到列表(父文件夹)来删除错误。引发此错误是因为Django正在列表文件夹(父文件夹)中查找settings.py。