I have a problem when i try to push my flask app to heroku
the error is this:
ModuleNotFoundError: No module named 'flask_login'
Please help!
Advertisement
Answer
This is telling you that flask_login
exists in your local development environment, and you still didn’t yet add it to your requirement.txt
before pushing to your heroku app.
You will need to regenerate your requirement.txt
with :
$pip freeze > requirements.txt
Then push your changes and re-install your packages using the new requirement.txt
file:
$pip install -r requirements.txt