blob: 2d1449530ca76853b190f3510e97aeec79732c93 (
plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
|
SHELL := /bin/bash
PYTHON=python3
help:
# Actions available:
# * clean: remove temporary files
# * test: launch tests
# * soft_test: launch tests without db reinitialization
# * run: run local test server (port 9000)
# * shell: launch a python shell with project context preloaded
# * makemessages: create messages to be translated
# * compilemessages: compile messages to be translated
clean:
-rm -rf *~*
-find . -name '*.pyc' -exec rm {} \;
-find . -name '.*.swp' -exec rm {} \;
-find . -name '__pycache__' -exec rm -rf {} \; 2> /dev/null
-rm -rf dist ishtar.egg-info
test: clean
$(PYTHON) manage.py test
soft_test: clean
$(PYTHON) manage.py test -k
migrations:
$(PYTHON) manage.py makemigrations
migrate:
$(PYTHON) manage.py migrate
shell:
$(PYTHON) manage.py shell
run:
$(PYTHON) manage.py runserver 0.0.0.0:9000
makemessages:
$(PYTHON) manage.py makemessages
compilemessages:
$(PYTHON) manage.py compilemessages
|