git://git.onelab.eu
/
unfold.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a6e8a7f
)
db reset command for django 1.5.1
author
Yasin
<mohammed-yasin.rahman@lip6.fr>
Fri, 23 Aug 2013 23:12:45 +0000
(
01:12
+0200)
committer
Yasin
<mohammed-yasin.rahman@lip6.fr>
Fri, 23 Aug 2013 23:12:45 +0000
(
01:12
+0200)
README
patch
|
blob
|
history
diff --git
a/README
b/README
index
cadc88d
..
5ababdb
100644
(file)
--- a/
README
+++ b/
README
@@
-222,6
+222,8
@@
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 <your_app>
======== update django database to reflect changes in existing models without any migration system (e.g., south) =========
$python manage.py reset <your_app>
+#Django 1.5.1
+$python manage.py flush
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)
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)