New flask-migrate Error - Can't Find Other Instances of It #496
-
I recently made some changes to the directories in my flask project and aligned to a more appropriate "init.py" file to store my app initializations. (Before, I had everything, including routes in a single file). That works splendidly now... However, I haven't even made changes to my database models since doing this, and I casually ran a
Looking at the file, the code in question has a HARD CODED value for
I have not seen anyone ever get this error before based on some thorough searches. And I don't know how this file works exactly. But what could be the issue here? I am close to uninstalling flask-migate and having to scrape everything together manually again, but I really do not want to! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@daviddirico my guess is that you hand edited this file at some point, maybe long ago, to add the |
Beta Was this translation helpful? Give feedback.
@daviddirico my guess is that you hand edited this file at some point, maybe long ago, to add the
configure_type
option. I assume you just upgraded to the latest Flask-Migrate release, which actually sets this option totrue
by default, so you can remove that line from your env.py file and let Flask-Migrate handle the option.