I want to use Django models in my Streamlit app, but when I import the model, error says “No module named data_labelling.models”
The following is my file system
- both data_labelling and data_validation are apps that under a Django project.
In “UIDesign.py”, I write
from data_labelling.models import ImageLabel.
When I run
streamlit run UIDesign, I get an error message says
ImportError: No module named data_labelling.models
I wonder why I see this error? and How to fix that?