Ask coding questions

← Back to all posts
Why is replit.db not updating???
isaiah08 (63)

I have NO CLUE why this is not working login using the credentials test as username and pass as password, then post something. It will redirect you to the /posts route, but it doesn't have your post. How can i fix this? Thanks!

Comments
hotnewtop
Muhammad_SJC (149)

Hmm... the replit database is kinda weak. How about you use Google Firebase? That's the easiest database to use out there. But I don't know if it works with flask.

isaiah08 (63)

How do i use that with python? @Muhammad_SJC

RYANTADIPARTHI (6010)

i don't think repl db is a good db for flask.

RYANTADIPARTHI (6010)

@isaiah08 flask has no separate db on it's own. in repl.it. In other editors, it does. But repl.it doesn't provide a db for flask.

isaiah08 (63)

Which is why you need to use replit.db! But why is it not working? @RYANTADIPARTHI

RYANTADIPARTHI (6010)

@isaiah08 repl db doesn't handle flask saving. It's not proper, which is why it's not working.

isaiah08 (63)

I changed it to a new db. Why is this one not working? @RYANTADIPARTHI

RYANTADIPARTHI (6010)

@isaiah08 no dbs will work for flask in repl.it