Развертывание Django для Windows
https://realpython.com/django-hosting-on-heroku/#step-7-deploy-your-django-project-to-heroku
После этого
Я столкнулся с проблемой при развертывании Django с Python с помощью Windows. Кажется, что он не может найти Procfile, хотя он находится в папке.
(portfolio) C:\Users\arund\Desktop\Code\Django\portfolio-project>heroku local
[WARN] Cannot read property '1' of null
[FAIL] No Procfile and no package.json file found in Current Directory - See run --help
TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at Index.run (C:/Users/arund/AppData/Local/heroku/client/7.59.2/node_modules/@heroku-cli/plugin-local/lib/commands/local/index.js:30:38)
at Index._run (C:/Users/arund/AppData/Local/heroku/client/7.59.2/node_modules/@oclif/command/lib/command.js:44:31)
(portfolio) C:\Users\arund\Desktop\Code\Django\portfolio-project>
После того как я пробежал
$ echo "web: python manage.py runserver 0.0.0.0:\$PORT" > Procfile
$ git add Procfile
$ git commit -m "Specify the command to run your project"