Flask: Cannot Import Name 'app'
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 update_printer() from __in
Solution 1:
It's a circular dependency, as you import updater
in your __init__.py
file. In my Flask setup, app
is created in app.py
.
Post a Comment for "Flask: Cannot Import Name 'app'"