Skip to content

Commit

Permalink
switch to django-extension's reset_db
Browse files Browse the repository at this point in the history
this allows development in sqlite, mysql, and postgresql
  • Loading branch information
crccheck committed Feb 20, 2013
1 parent f312e6d commit a5bf8b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
PROJECT=./example_project
MANAGE=$(PROJECT)/manage.py

help:
@echo " make help - this help"
Expand All @@ -17,13 +18,12 @@ test:
#
# -s don't capture stdout
#
python $(PROJECT)/manage.py test -s
python $(MANAGE) test -s


resetdb:
$(foreach db, $(wildcard $(PROJECT)/*.sqlite),\
rm $(db);)
python $(PROJECT)/manage.py syncdb --noinput
python $(MANAGE) reset_db --router=default --noinput
python $(MANAGE) syncdb --noinput


.PHONY: help clean test resetdb

0 comments on commit a5bf8b5

Please sign in to comment.