-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
- BRANCH : feature/DB
- COMMIT MESSAGE: fix: circular import error
- DETAIL: 순환 import 오류
- CAUSE : bitcoinAutoTrade.py에서 model/Upadet.py import시, Update.py에 있는 create_app()을 통해 객체 생성하게 되는데, 이때 호출되는 create_app()에서 views/main_view.py, coin_view.py를 호출하게 된다. 이 때 해당 파일에서 다시 bitcoinAutoTrade를 import하게 되어 Circular import가 발생하게 됨 --> SOLUTION : import를 runtime에서 실행해야 함. 즉, import가 필요한 함수는 해당 함수 안에서 import를 해야 함
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels