2

您好,我正在 heroku 上部署一个测试项目,但出现此错误

Exception Type: ImportError
Exception Value:    No module named hello.urls

这是我的 Procfile 文件 web: python manage.py runserver 0.0.0.0:$PORT

项目名称是 hello all run ok 除了我运行 heroku ps give 时的应用程序

Process  State       Command
-------  ----------  -----------------------------------
web.1    up for 29s  python manage.py runserver 0.0.0.0.
4

1 回答 1

0

看起来这是一个 python 路径问题。如果您将项目代码粘贴到某处,我很乐意为您寻找。我基本上需要看看:

  • 站点结构(文件夹、文件)。
  • 你的settings.py档案。
于 2012-08-03T21:46:16.347 回答