PHONY help build build_venv build_deps static run shell test build ven

 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
.PHONY: help build build_venv build_deps static run shell test
build: venv deps
venv:
virtualenv --no-site-packages --python=python3.4 .env
deps:
.env/bin/pip install -r project/requirements.txt
static:
mkdir -p static/components static/assets static/collected
./manage.py collectstatic --link --noinput
run:
./manage.py runserver 0.0.0.0:8000
shell:
./manage.py shell_plus
migrate:
./manage.py makemigrations $(app)
./manage.py migrate $(app)
sync:
./manage.py syncdb --migrate
clean:
find -name '*.pyc' -delete
find -name '*.swp' -delete
reload:
touch project/wsgi.py