Re: Need Advise on the best way to track how much time a user is logged in.....

2013-08-23 Thread Huu Da Tran
On Thursday, August 22, 2013 3:09:45 PM UTC-4, 7equiv...@gmail.com wrote: > My users will not be able to logout by closing a browser because they have > no such interaction with the system. They will be passing an RFID tag over > a reader to unlock the door and clock in and a python script will

Re: html templates and dynamic loading

2013-08-23 Thread Huu Da Tran
On Thursday, August 22, 2013 8:42:04 AM UTC-4, Bastien Amiel wrote: > I need to update the chat when an event come but : > > 1. > If I update my chat sub page, inputs are reset (seems logic since html > is recreated). > You can always have some field that keep when the chat was started (in

Re: Is it possible to have 1-to-Many and 1-to-1 relationships for one specific table?

2013-08-19 Thread Huu Da Tran
On Monday, August 19, 2013 3:03:25 PM UTC-4, Pepsodent Cola wrote: > Is it possible to have 1-to-Many and 1-to-1 relationships for one specific > table? > Because the database doesn't do what I wish for. > What is the intended goal? -- You received this message because you are subscribed to

Re: Is there any way to apply a constraint on ForeignKey/OneToOneField being attached to any model based on some condition ?

2013-02-07 Thread Huu Da Tran
You could overwrite the save() method... or if you are populating from a form, overwrite the clean() method. On Thursday, February 7, 2013 3:23:54 AM UTC-5, vijay shanker wrote: > > Hi > I have these two models Cart and CartItem, > > class Cart(models.Model): > cart_id =

Re: Update / collectstatic / loadfixtures automation

2013-02-07 Thread Huu Da Tran
On Sunday, February 3, 2013 11:17:15 AM UTC-5, Thiago wrote: > Yeah, it worked =) > I tryed --noinput before but the behavior is a little different. > Thanks! > In what sense is the --noinput different? Also, I would suggest you split your script into two... restart.sh that would contain all

Re: Django ForeignKey versus ManyToManyField

2013-02-07 Thread Huu Da Tran
On Wednesday, February 6, 2013 1:39:30 AM UTC-5, vijay shanker wrote: > I have two models, a Customer model and a WishListItem model (which stores > products). I have option of either having a ManyToManyField in Customer to > WishListItem, or I can have a customer ForeignKey to customer for