質問

User is able to register and confirm their mail but when the flask server is shut down and restarted, it no longer remembers any of the previous registered users, forcing people to sign up all over again.

How can I debug this? I am on ubuntu 12.04 server running flask-security.

I am using a local SQLite .db file

When I check the .db, the user seems to be there but disappears when the server is shut down completely and rebooted again.

役に立ちましたか?

解決

Sounds like your app is destroying and recreating the database each time it's launched. Do you have some code along the lines of drop_all() and create_all() in your app's initialization code?

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top