hello.
i've been searching for a while for a way to handle the lock-write mechanism in( whenever user is updating , the record should be locked for the others ) . and i've been told that the web-frame work is responsible for this.
check this out :
http://serverfault.com/questions/184666/how-to-configure-apache-server
my question is :
how do i do that with django , in other words . what title should i be searching under
this is an Emergence task . please help
thanks in advance
views:
41answers:
2
+1
A:
Locks on the Database are provided by your DBMS like MySql or MSSQL Server. Not your framework or webserver.
Henrik P. Hessel
2010-09-25 20:08:04
Not necessarily; if it's a long-term lock, eg. for a shared text editor that says "this document can't be edited because someone else is editing it already", you definitely do not want a database lock or transaction. (The question is too vague to have any idea what he's actually asking, of course.)
Glenn Maynard
2010-09-25 20:46:16
True, but on his posting over at serverfault he talks about database entries.
Henrik P. Hessel
2010-09-25 20:51:49
Documents like that are still typically stored in a database. Anyhow, throwing darts is all that can be done with a question like this...
Glenn Maynard
2010-09-25 21:00:05
glad that Henrik answered my question ( your the man with the most interesting topics in stackoverflow to me ) ^_^
Moayyad Yaghi
2010-09-25 23:35:56
A:
Hello, Check this : http://stackoverflow.com/questions/320096/django-how-can-i-protect-against-concurrent-modification-of-data-base-entries
mouad
2010-09-25 22:55:28