简体   繁体   中英

django issues urls on heroku

Hello I am deploying an test project on heroku and I got this error

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

the project name is hello all run ok except the app when I run 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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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