简体   繁体   English

django在heroku上发布网址

[英]django issues urls on heroku

Hello I am deploying an test project on heroku and I got this error 您好,我在heroku上部署了一个测试项目,但出现此错误

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

this is my Procfile file web: python manage.py runserver 0.0.0.0:$PORT 这是我的Procfile文件网站:python manage.py runserver 0.0.0.0:$PORT

the project name is hello all run ok except the app when I run heroku ps give 项目名称是你好,除了我运行heroku ps Give的应用程序外,其他所有运行正常

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

It looks like this is a python path issue. 看来这是python路径问题。 If you paste your project code somewhere, I'd be happy to take a look for you. 如果您将项目代码粘贴到某个地方,我很乐意为您服务。 I'd basically need to see: 我基本上需要看:

  • Site structure (folders, files). 网站结构(文件夹,文件)。
  • Your settings.py file. 您的settings.py文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM