Y
Hacker News
new
|
ask
|
show
|
jobs
by
ddorian43
668 days ago
By default flask doesnt have a db. There is flask-sessions extensiom that does this for you.
2 comments
shakna
668 days ago
Or you can just link to a DB directly. A Flask app is just a WSGI app. You can mount and extend it with any kind of Python, no extension necessary.
link
ddorian43
668 days ago
That's what the extension does for you.
link
samsonradu
668 days ago
Can't session data be stored on disk? that's the default PHP behavior.
link
ddorian43
668 days ago
Because you might have multiple webservers.
link
samsonradu
668 days ago
There are solutions for that: Shared NAS, sticky sessions etc.
link
ddorian43
667 days ago
Good luck with maintaining that NAS. Your sticky sessions will logout all users on a server that goes down. It's better to have a db.
Please stop.
link
samsonradu
667 days ago
Of course it's better to have a db doh... I'm replying to your
> By default flask doesnt have a db.
link
ddorian43
667 days ago
People don't have NAS laying around. And don't use a filesystem as a db, especially a remote filesystem.
link