Jimin Ahn
Jimin Ahn

Reputation: 11

502 Bad Gateway error with ModuleNotFoundError: No module named 'flask_wtf' when i deploy my project to google cloud

I already got wtf-form install through the pip install and it works well in my local machine. However, after I used wtf-form in my G-cloud, i got errors about 502 badgate and Module can not be found. How could i fix it?

Upvotes: 1

Views: 320

Answers (1)

Dustin Ingram
Dustin Ingram

Reputation: 21570

You need to specify all your dependencies in the requirements.txt file. If you're using Flask-WTF, it should have this line:

Flask-WTF==0.14.2

(or whichever version you need)

Upvotes: 1

Related Questions