-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
35 lines (27 loc) · 1.38 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
MANAGE=django-admin.py
TESTER=django-nosetests.py
PROJECT=testsite
test:
/bin/true
testall:
PYTHONPATH=`pwd` DJANGO_SETTINGS_MODULE=$(PROJECT).settings $(TESTER) --with-coverage --cover-package=$(PROJECT) $(PROJECT)
run: syncdb $(PROJECT)/media $(PROJECT)/static
PYTHONPATH=`pwd` DJANGO_SETTINGS_MODULE=$(PROJECT).settings $(MANAGE) collectstatic --noinput
PYTHONPATH=`pwd` DJANGO_SETTINGS_MODULE=$(PROJECT).settings $(MANAGE) runserver
syncdb: $(PROJECT)/database.sqlite
PYTHONPATH=`pwd` DJANGO_SETTINGS_MODULE=$(PROJECT).settings $(MANAGE) syncdb --noinput --migrate
PYTHONPATH=`pwd` DJANGO_SETTINGS_MODULE=$(PROJECT).settings $(MANAGE) loaddata auth.json
$(PROJECT)/media:
-mkdir $(PROJECT)/media
$(PROJECT)/static:
-mkdir $(PROJECT)/static
$(PROJECT)/database.sqlite:
-find . -name '*.pyc' | xargs rm
-rm $(PROJECT)/settings.pyc
PYTHONPATH=`pwd` DJANGO_SETTINGS_MODULE=$(PROJECT).settings $(MANAGE) syncdb --noinput
PYTHONPATH=`pwd` DJANGO_SETTINGS_MODULE=$(PROJECT).settings $(MANAGE) syncdb --noinput
PYTHONPATH=`pwd` DJANGO_SETTINGS_MODULE=$(PROJECT).settings $(MANAGE) migrate profiles 0001 --fake
PYTHONPATH=`pwd` DJANGO_SETTINGS_MODULE=$(PROJECT).settings $(MANAGE) migrate mylogging 0003 --fake
migrate:
PYTHONPATH=`pwd` DJANGO_SETTINGS_MODULE=$(PROJECT).settings $(MANAGE) syncdb --noinput --migrate
PYTHONPATH=`pwd` DJANGO_SETTINGS_MODULE=$(PROJECT).settings $(MANAGE) migrate