Python Import Error. Circular Imports
I'm creating a simple flask app. I'm using blueprints to provide views and OpenID for login. I have faced the problem when I try to import created OpenID object to the file with th
Solution 1:
In ProgList
, you import views_admin
, in views_admin
, you import ProgList
. This cannot be resolved. The typical approach here is to outsource something to a third file which both can safely access without interfering with each other. From the looks of it, you might want to move open_id
into a different file.
Post a Comment for "Python Import Error. Circular Imports"