我得到一个名为ImportError的错误:djang中没有名为testapp的模块

2024-04-25 00:00:59 发布

您现在位置:Python中文网/ 问答频道 /正文

我的项目名是practice,我的应用程序名是testapp。这是我的项目结构:

django/bin/practice

\practice
      -practice folder
              -__init__.py
              -settings.py
              -urls.py
              -wsgi.py
      -testapp folder
              -migrations folder
              -templates folder
                        -index.html
              -__init__.py
              -admin.py
              -models.py
              -tests.py
              -views.py
      -manage.py

我已经在INSTALLED_APPS中的INSTALLED_APPS中包含了我的应用程序名,但我仍然收到以下错误:

ImportError: no module named testapp in django

this is the error page


Tags: appsinstalled项目djangopy应用程序wsgibin