Flask: cannot import name 'app'

前端 未结 1 1908
一整个雨季
一整个雨季 2021-01-20 22:24

Trying to run my python file updater.py to SSH to a server and run some commands every few set intervals or so. I\'m using APScheduler to run the function

相关标签:
1条回答
  • 2021-01-20 23:08

    It's a circular dependency, as you import updater in your __init__.py file. In my Flask setup, app is created in app.py.

    0 讨论(0)
提交回复
热议问题