tecladocode / rest-apis-flask-python

Projects and e-book for our course, REST APIs with Flask and Python

Home Page:https://rest-apis-flask.teclado.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

circular dependency section 6

mickaelmarin opened this issue · comments

Hi,

In section 6 of your course, you spoke about circular dependency, but I don't understand why.
I try to put 'from db import db' at the top of the app.py file and it work without errors.

Could you explain brieffly, in which case this circular dependency happen ?

thanks,

Mickael

Hey Mickael,

Thanks for raising this—I think you may be right and the import statement can be anywhere within that file. I will investigate!