Two years ago I have programmed a Django website and I deployed on Heroku. As I remember in that times if i was automatically logged out I could log in with no problems. Now I have started to work on this website in the testing side, a project from my dissertation thesis and everytime I am logging in and if my computer goes sleep mode or I don't click my website for a brief amount of time I can't login back with the same credentials. Have you encountered the same problem? I don't know what to do.
Asked
Active
Viewed 19 times
0
-
What does "can't log back in with the same credentials" mean? What do you do instead? – ChrisGPT was on strike May 13 '23 at 13:45
-
I have to create a new user everytime. The same credentials mean the credentials I used for the last user created in app. – bogdan-cmd May 13 '23 at 13:49
-
Wild guess: are you using SQLite as your database? – ChrisGPT was on strike May 13 '23 at 13:50
-
Your wild guess is right.. – bogdan-cmd May 13 '23 at 13:56
-
That won't work. See [How to keep changes made on sqlite database](https://stackoverflow.com/q/35113743/354577), [Heroku: Django database file lost on every dyno restart](https://stackoverflow.com/q/42742956/354577), [Prevent Django SQLite db from being overwritten while pushing to Heroku](https://stackoverflow.com/q/23738598/354577) – ChrisGPT was on strike May 13 '23 at 14:14