¡@

Home 

python Programming Glossary: mymodel.objects.get

How do I force Django to ignore any caches and reload data?

http://stackoverflow.com/questions/3346124/how-do-i-force-django-to-ignore-any-caches-and-reload-data

Demonstrate like this Run a django shell in terminal 1 MyModel.objects.get id 1 .my_field u'old' And another in terminal 2 MyModel.objects.get.. id 1 .my_field u'old' And another in terminal 2 MyModel.objects.get id 1 .my_field u'old' a MyModel.objects.get id 1 a.my_field.. in terminal 2 MyModel.objects.get id 1 .my_field u'old' a MyModel.objects.get id 1 a.my_field NEW a.save MyModel.objects.get id 1 .my_field..