Re: Django ORM and phpMyAdmin

2008-11-26 Thread Adi Jörg Sieker
Hi, On 26.11.2008 10:32 Uhr, Seth Kaïne wrote: > I'm learning about ORM, but it's not easy to understand the whole > picture. > I'm trying to create a "function" or a "filter" linked to my models.py > or to PHPmyAdmin to give me a signal when something is changing. > I'm making reseachs on signal

Re: Django ORM and phpMyAdmin

2008-11-26 Thread Seth Kaïne
I'm learning about ORM, but it's not easy to understand the whole picture. I'm trying to create a "function" or a "filter" linked to my models.py or to PHPmyAdmin to give me a signal when something is changing. I'm making reseachs on signal on django, perhaps a solution to explore. If you have ot

Re: Django ORM and phpMyAdmin

2008-11-24 Thread shi shaozhong
What I have now is a data processing Python script, which runs 2 to 3 minutes. What I need now is to have a script to fire off the execution of the script, monitor its progress and return an innerHTML when it finished its work. I tried to use feedback.py to call it as a subprocess. However, it

Re: Django ORM and phpMyAdmin

2008-11-24 Thread Travis Veazey
Seth, The reason that you don't see the values in u3 change when you change the database is that the models don't read from the database every time you want to get a value - that would be silly and would cause Django to be among the worst-performing frameworks in existence. Database reads take time

Re: Django ORM and phpMyAdmin

2008-11-24 Thread Steve Holden
Seth Kaïne wrote: > I want to have some more, please. > When I do that: > > python manage.py shell > > from httpbackend.models import Unit Unit.objects.all() > [, , , > ] > u3 = Unit.objects.filter(id=3)[0] u3.status > >