I am facing an issue with importing the BookReview class in my app.py file. The code works perfectly fine when running locally; however, I encounter a ModuleNotFoundError when deploying the application, specifically on the Render platform.
Navigate to the project directory - Implementing REST API's
Run the application locally using : python app.py
Confirm that the application runs without any import errors.
Deploy the application on Render.
Observe the ModuleNotFoundError: No module named 'book_review' error during deployment.
Expected Behavior :
The BookReview class should be successfully imported both locally and when deployed on Render, and the application should run without any import errors in both environments.
Actual Behavior :
The code works without issues when running locally but encounters a ModuleNotFoundError when deploying on Render.