When I implement routes.py and import it in app.py, I am getting the above error. It is there in the link and if this is not supported why is it there.
I want to do the following:
- create a sepearte routes.py file with db from app.py and add import routes in app.py
- create a models.py file and define all models in it. Use it in app.py. I am getting circular reference error as I am using app and db objects in models.py imported from app.py