[Answer]-How to import yaml when deploying Django app on Heroku

1👍

To expand on forvaidya’s answer, yaml is missing from your requirements.txt file and that is why Heroku is not installing it when you commit your app. In your base directory, rerun the following command to make this work:

pip freeze > requirements.txt
git add .
git commit -m "fixed requirements.txt file"

…then push back to Heroku.

0👍

yaml module is either not present or not in path.

Leave a comment