X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=blobdiff_plain;f=README;h=cadc88d2f3e319b7735eab60be9ed1cba18edf9f;hp=175e65b017ae8108512a29d33685573d1f1b2480;hb=43ee08c820533a61c01f1e9ee51e0452aadd7aa9;hpb=129b1502b5188c74f48e82da6c20c3b63350936c diff --git a/README b/README index 175e65b0..cadc88d2 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -his file documents the contents of this module +This file documents the contents of this module See the devel/ subdir for more devel-oriented doc. @@ -219,3 +219,17 @@ that would reset all-static/ and all-templates/ for you from the other contents +======== update django database to reflect changes in existing models without any migration system (e.g., south) ========= + +$python manage.py reset + +This will update the database tables for your app, but will completely destroy any data that existed in those tables. +If the changes you made to your app model do not break your old schema (for instance, you added a new, optional field) +you can simply dump the data before and reload it afterwards, like so: + + +$python manage.py dumpdata > temp_data.json +$python manage.py reset +$python manage.py loaddata temp_data.json + +If your changes break your old schema this won't work - in which case tools like south or django evolution are great.