django update code example
Example 1: upgrade django
$ python -m pip install -U Django
Example 2: update django
python -m pip install -U Django
Example 3: delete model object django
SomeModel.objects.filter(id=id).delete()
Example 4: django update model
Model.objects.filter(id = 223).update(field1 = 2)
Example 5: pip update django
pip install --upgrade django==1.6.5
Example 6: django objects.create()
SomeModel.objects.create(firstname='ricky', lastname='ticky')