Add resetdb command.
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Sat, 2 Feb 2013 10:37:18 +0000 (11:37 +0100)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Sat, 2 Feb 2013 10:37:40 +0000 (11:37 +0100)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Makefile

index 1230e3e..c0a4e20 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -13,3 +13,7 @@ run:
 
 test:
        $(MANAGE_PY) test example
+
+resetdb:
+       rm -f xnet/db.sqlite
+       $(MANAGE_PY) syncdb --noinput