groups.decorators.group_required: redirect to login when user is not authenticated
[xnet] / Makefile
CommitLineData
74a237a6 1MANAGE_PY = python manage.py
75e78811
RB
2ROOT_DIR = xnet
3APPS = $(shell find $(ROOT_DIR) -name 'models.py' | sed 's,/models.py$$,,; s:.*/::')
33234b2f
RB
4
5
6default: all
7
8
9all:
10
11
12run:
13 $(MANAGE_PY) runserver
14
4d594f44
AD
15shell:
16 $(MANAGE_PY) shell
33234b2f
RB
17
18test:
75e78811 19 $(MANAGE_PY) test $(APPS)
d48fdabf
RB
20
21resetdb:
22 rm -f xnet/db.sqlite
23 $(MANAGE_PY) syncdb --noinput
7c9fa49a 24
95fa5c13
RB
25clean:
26 find . "(" -name "*.pyc" -or -name "*.pyo" -or -name "*.mo" ")" -delete
27 find . -type d -empty -delete
7c9fa49a
RB
28
29doc:
30 $(MAKE) -C doc html
31
32
33.PHONY: default all run shell test resetdb doc