I am building a sample CRUD REST API project using Python & Flask, I am using VSCode to build this sample API Project. I am getting below errors/Warnings( see the attached Screenshot). I tried to run the project and tried using Postman to do GET request but getting 404 errors.
The warnings are correct. You have misspelled __init__.py
as __int__.py
, so python doesn't recognise the directory as a module. This is why it cannot find Task
As for the unused imports, why do you need an asterisk import (from api import *
? If you only need appMainInstance
then you should only import that.