Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ddorian43
· 2y ago · 0 comments
By default flask doesnt have a db. There is flask-sessions extensiom that does this for you.
Comments
[–]
shakna
2y 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.
[–]
ddorian43
OP
2y ago
That's what the extension does for you.
[–]
samsonradu
2y ago
Can't session data be stored on disk? that's the default PHP behavior.
[–]
ddorian43
OP
2y ago
Because you might have multiple webservers.
[–]
samsonradu
2y ago
There are solutions for that: Shared NAS, sticky sessions etc.
[–]
ddorian43
OP
2y 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.