I refactored my webapp and now my IDE pycharm marks some imports red. Why?
from wtforms import Form, TextField, validators, SelectField
My IDE marks the Form, TextField and the SelectField red as they cannot be imported. ("Unresolved reference"). What should I do if I need those classes in my project?
Try deleting the libraries from your project if they are in libraries, then re-importing those libraries.
Also, I assume you've done this, but make sure the libraries are actually installed and present in a reachable location that is properly mapped.
You need to install it in in your environment(according to the comments you didn't), please try the following:
Settings -> Project: MyProjectName -> Project Interpreter
Then click on the green plus and choose your packages
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With